mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
removed duplicate datetime line
copy/paste error
This commit is contained in:
parent
ed8ee91dcf
commit
b67c3b45e1
1 changed files with 0 additions and 3 deletions
|
@ -222,9 +222,6 @@ def uptime(human_readable=False):
|
|||
|
||||
# Subtract startup time from current time to get the uptime of the system
|
||||
uptime = datetime.datetime.now() - startup_time
|
||||
|
||||
# Subtract startup time from current time to get the uptime of the system
|
||||
uptime = datetime.now() - startup_time
|
||||
|
||||
return str(uptime) if human_readable else uptime.total_seconds()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue