mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-21 19:57:59 +01:00
Fix Uptime
This commit is contained in:
parent
206b6cc9da
commit
0602632aa5
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue