Fix Uptime

This commit is contained in:
Mattia Basaglia 2015-01-24 10:13:16 +01:00
parent 206b6cc9da
commit 0602632aa5

View file

@ -68,7 +68,8 @@ function ponyget_CPU()
function ponyget_Uptime() function ponyget_Uptime()
{ {
uptime | grep -oE "up.*users" | sed -r "s/up\s*(.+),\s*[0-9]+\s*users/\1/" uptime | grep -oE "up.*user" | \
sed -r -e "s/up\s*(.+),\s*[0-9]+\s*user/\1/" -e "s/\s+/ /g"
} }
function ponyget_Packages() function ponyget_Packages()