From 50abd139f152170d7e0d111cd768271de4396ea5 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 17 Sep 2014 04:18:50 +0000 Subject: [PATCH] more cleanups of logic, this should be about it for 2.2.5 --- inxi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/inxi b/inxi index 2dcbb33..375e3c0 100755 --- a/inxi +++ b/inxi @@ -3973,14 +3973,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. + sub(/\.[0-9]+$/,"",max) + sub(/\.[0-9]+$/,"",speed) + sub(/\.[0-9]+$/,"",min) if (speed == 0) { - print "N/A,0,0" - exit + print "N/A," min "," max } else { - sub(/\.[0-9]+$/,"",max) - sub(/\.[0-9]+$/,"",speed) - sub(/\.[0-9]+$/,"",min) print speed "," min "," max } }