mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_monitor.py
This commit is contained in:
parent
21de15e4a3
commit
09a267a167
1 changed files with 11 additions and 12 deletions
|
@ -133,7 +133,6 @@ def monitor_info(memory=False, cpu=False, disk=False, ifconfig=False, uptime=Fal
|
||||||
return json.loads(s.getLoad())
|
return json.loads(s.getLoad())
|
||||||
|
|
||||||
elif ifconfig:
|
elif ifconfig:
|
||||||
# TODO: c'est pas ifconfig ça ;)
|
|
||||||
result = {}
|
result = {}
|
||||||
for k, fs in enumerate(json.loads(s.getNetwork())):
|
for k, fs in enumerate(json.loads(s.getNetwork())):
|
||||||
interface = fs['interface_name']
|
interface = fs['interface_name']
|
||||||
|
|
Loading…
Reference in a new issue