2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Restore spacing around float in nodesensors

The managed formatting needs
to be padded in the non-csv output.
This commit is contained in:
Jarrod Johnson 2023-03-16 17:29:36 -04:00
parent 872718c658
commit ff025989c6

View File

@ -141,7 +141,7 @@ def sensorpass(showout=True, appendtime=False):
if sensedata['value'] is None:
showval = ''
elif isinstance(sensedata['value'], float):
showval = floatformat(sensedata['value'])
showval = u' {0} '.format(floatformat(sensedata['value']))
else:
showval = u' {0} '.format(sensedata['value'])
if sensedata['units'] not in (None, u''):