mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-28 06:48:00 +01:00
Expand displayed uptime
This commit is contained in:
parent
2612faf2bd
commit
0acc61cd80
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ function ponyget_CPU()
|
||||||
|
|
||||||
function ponyget_Uptime()
|
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()
|
function ponyget_Packages()
|
||||||
|
|
Loading…
Reference in a new issue