mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
update memory check and disk check
This commit is contained in:
commit
28ed44d67e
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ def public():
|
|||
raise YunoHostError(1, _("No connection") )
|
||||
return { 'Public IP' : ip }
|
||||
|
||||
def public():
|
||||
try:
|
||||
ip = str(urlopen('http://ip.yunohost.org').read())
|
||||
except:
|
||||
raise YunoHostError(1, "No connection" )
|
||||
return { _("Public IP"): ip }
|
||||
|
||||
def processcount():
|
||||
processcount = {'total': 0, 'running': 0, 'sleeping': 0}
|
||||
process_all = [proc for proc in psutil.process_iter()]
|
||||
|
|
Loading…
Reference in a new issue