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