Merge pull request #467 from konimex/master

GNU Hurd: Added uptime
This commit is contained in:
Dylan Araps 2016-11-29 21:16:13 +11:00 committed by GitHub
commit c4271fdc17

View file

@ -289,7 +289,7 @@ get_uptime() {
*) *)
# Get uptime in seconds # Get uptime in seconds
case "$os" in case "$os" in
"Linux" | "Windows") "Linux" | "Windows" | "GNU")
seconds="$(< /proc/uptime)" seconds="$(< /proc/uptime)"
seconds="${seconds/.*}" seconds="${seconds/.*}"
;; ;;