mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
uptime made it space, otherwise it looks silly
This commit is contained in:
parent
b6eb285cf9
commit
1dd41e1d02
2
inxi
2
inxi
|
@ -1189,7 +1189,7 @@ get_networking_data()
|
|||
get_uptime()
|
||||
{
|
||||
## note: removing gsub(/ /,"",a); to get get space back in there, goes right before print a
|
||||
local up_time=$( uptime | gawk '{ a = gensub(/^.*up *([^,]*).*$/,"\\1","g",$0); gsub(/ /,"-",a); print a }' )
|
||||
local up_time=$( uptime | gawk '{ a = gensub(/^.*up *([^,]*).*$/,"\\1","g",$0); print a }' )
|
||||
|
||||
echo "$up_time"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue