From 351d4932e247fe0bf7e56e587bb0f9a18648a3a5 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 17 Sep 2014 04:16:33 +0000 Subject: [PATCH] small logic cleanup --- inxi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index e8bc57a..2dcbb33 100755 --- a/inxi +++ b/inxi @@ -3974,13 +3974,13 @@ get_cpu_data() # this is / was used in inxi short output only, but when it is N/A, need to use the previous array # value, from above, the actual speed that is, for short output, key 0. if (speed == 0) { - print "N/A" + print "N/A,0,0" exit } else { - sub(/\.0[0]+$/,"",max) - sub(/\.0[0]+$/,"",speed) - sub(/\.0[0]+$/,"",min) + sub(/\.[0-9]+$/,"",max) + sub(/\.[0-9]+$/,"",speed) + sub(/\.[0-9]+$/,"",min) print speed "," min "," max } }