From b6eb285cf9615025a7575c658ce2d2f1b911fdc4 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 31 Oct 2008 01:34:51 +0000 Subject: [PATCH] tweaked uptime output, added dash, removed space --- inxi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index b826d47..bfede02 100755 --- a/inxi +++ b/inxi @@ -1188,7 +1188,8 @@ get_networking_data() ## return uptime string get_uptime() { - local up_time=$( uptime | gawk '{ a = gensub(/^.*up *([^,]*).*$/,"\\1","g",$0); gsub(/ /,"",a); print a }' ) + ## 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 }' ) echo "$up_time" }