From: Brian Warner Date: Thu, 23 Aug 2007 23:31:15 +0000 (-0700) Subject: munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/architecture.txt?a=commitdiff_plain;h=bd49bafb235d137d2bcb340eaf4ea3d6db38f940;p=tahoe-lafs%2Ftahoe-lafs.git munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead --- diff --git a/misc/munin/tahoe-sharesperfile.py b/misc/munin/tahoe-sharesperfile.py index 1c9dbf58..a2420f2f 100644 --- a/misc/munin/tahoe-sharesperfile.py +++ b/misc/munin/tahoe-sharesperfile.py @@ -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)