From 0602632aa5f657c79d613c4309c968eeee7320da Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Sat, 24 Jan 2015 10:13:16 +0100 Subject: [PATCH] Fix Uptime --- systempony | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systempony b/systempony index 9923c3b..8c60fe3 100755 --- a/systempony +++ b/systempony @@ -68,7 +68,8 @@ function ponyget_CPU() 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()