Update facts.py

This commit is contained in:
Dag Wieers 2014-06-05 15:09:43 +02:00
parent 14a9966984
commit fd6f0cb4b4

View file

@ -140,7 +140,7 @@ class Facts(object):
days = int(raw.split()[2])
if 'min' in raw:
hours = 0
minutes = int(raw[4])
minutes = int(raw.split()[4])
else:
hours, minutes = map(int, raw.split()[4].split(':'))
self.facts['uptime'] = days*24*60*60 + hours*60*60 + minutes*60