uptime made it space, otherwise it looks silly

This commit is contained in:
inxi-svn 2008-10-31 01:36:38 +00:00
parent b6eb285cf9
commit 1dd41e1d02

2
inxi
View file

@ -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"
}