From bd49bafb235d137d2bcb340eaf4ea3d6db38f940 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 23 Aug 2007 16:31:15 -0700 Subject: [PATCH] munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead --- misc/munin/tahoe-sharesperfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/munin/tahoe-sharesperfile.py b/misc/munin/tahoe-sharesperfile.py index 1c9dbf583..a2420f2f0 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)