update memory check and disk check

This commit is contained in:
abeudin 2012-11-01 19:12:33 +01:00
commit 28ed44d67e

View file

@ -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()]