mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
more cleanups of logic, this should be about it for 2.2.5
This commit is contained in:
parent
351d4932e2
commit
50abd139f1
9
inxi
9
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue