Fixed frequency pretty print function

This commit is contained in:
Mark Qvist 2023-09-30 19:22:39 +02:00
parent 2d2f0947ac
commit c5248d53d6

View File

@ -187,9 +187,6 @@ def prettyfrequency(hz, suffix="Hz"):
for unit in units:
if abs(num) < 1000.0:
if unit == "":
return "%.2f %s%s" % (num, unit, suffix)
else:
return "%.2f %s%s" % (num, unit, suffix)
num /= 1000.0