Fixed uptime output if it is under a minute
This commit is contained in:
parent
96e05f78f8
commit
a588f88f6c
1 changed files with 1 additions and 0 deletions
1
fetch
1
fetch
|
@ -527,6 +527,7 @@ getuptime () {
|
||||||
|
|
||||||
*)
|
*)
|
||||||
uptime="$(uptime -p)"
|
uptime="$(uptime -p)"
|
||||||
|
[ "$uptime" == "up" ] && uptime="up $(cat /proc/uptime)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue