Uptime: Revert date removal

This commit is contained in:
Dylan Araps 2016-12-16 13:12:18 +11:00
parent 27e634fc0c
commit 89f7c2210d

View file

@ -317,7 +317,7 @@ get_uptime() {
boot="${boot/,*}"
# Get current date in seconds
now="$(printf "%(%s)T")"
now="$(date +%s)"
seconds="$((now - boot))"
;;