mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
Reduce noise of one off reading
Per request, limit the display precision of floats in the nodesensors command readout.
This commit is contained in:
parent
bfc2b65e99
commit
757df0f571
@ -126,6 +126,8 @@ def sensorpass(showout=True, appendtime=False):
|
||||
if showout:
|
||||
if sensedata['value'] is None:
|
||||
showval = ''
|
||||
elif isinstance(sensedata['value'], float):
|
||||
showval = u' {0:.5f} '.format(sensedata['value'])
|
||||
else:
|
||||
showval = u' {0} '.format(sensedata['value'])
|
||||
if sensedata['units'] not in (None, u''):
|
||||
|
Loading…
Reference in New Issue
Block a user