From 1dd41e1d028f8654ce16cf22e719a01e91bc0f59 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 31 Oct 2008 01:36:38 +0000 Subject: [PATCH] uptime made it space, otherwise it looks silly --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index bfede02..3019b72 100755 --- a/inxi +++ b/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" }