Expand displayed uptime

This commit is contained in:
Mattia Basaglia 2015-01-03 21:34:29 +01:00
parent 2612faf2bd
commit 0acc61cd80

View file

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