mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update facts.py
This commit is contained in:
parent
14a9966984
commit
fd6f0cb4b4
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class Facts(object):
|
||||||
days = int(raw.split()[2])
|
days = int(raw.split()[2])
|
||||||
if 'min' in raw:
|
if 'min' in raw:
|
||||||
hours = 0
|
hours = 0
|
||||||
minutes = int(raw[4])
|
minutes = int(raw.split()[4])
|
||||||
else:
|
else:
|
||||||
hours, minutes = map(int, raw.split()[4].split(':'))
|
hours, minutes = map(int, raw.split()[4].split(':'))
|
||||||
self.facts['uptime'] = days*24*60*60 + hours*60*60 + minutes*60
|
self.facts['uptime'] = days*24*60*60 + hours*60*60 + minutes*60
|
||||||
|
|
Loading…
Reference in a new issue