Uptime: Revert date removal

This commit is contained in:
Dylan Araps 2016-12-16 13:12:18 +11:00
parent 27e634fc0c
commit 89f7c2210d
1 changed files with 1 additions and 1 deletions

View File

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