Small improvement of float printing
This commit is contained in:
parent
347b591811
commit
ca766332bf
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class GaugeFormatter(IFormatter):
|
|||
if int(sensor.lastvalue.level) == sensor.lastvalue.level:
|
||||
lastvalue = "%d " % sensor.lastvalue.level
|
||||
else:
|
||||
lastvalue = "%f " % sensor.lastvalue.level
|
||||
lastvalue = "%r " % sensor.lastvalue.level
|
||||
if not empty(sensor.unit):
|
||||
lastvalue += "%s" % sensor.unit
|
||||
if first:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue