munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead

This commit is contained in:
Brian Warner 2007-08-23 16:31:15 -07:00
parent b3d89b1439
commit bd49bafb23

View File

@ -56,5 +56,5 @@ for nodename, basedir in nodedirs:
shares_per_file = 1.0 * shares / files
else:
shares_per_file = 0.0
print "%s.value %d" % (nodename, shares_per_file)
print "%s.value %.1f" % (nodename, shares_per_file)