mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead
This commit is contained in:
parent
b3d89b1439
commit
bd49bafb23
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user