]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead
authorBrian Warner <warner@allmydata.com>
Thu, 23 Aug 2007 23:31:15 +0000 (16:31 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 23 Aug 2007 23:31:15 +0000 (16:31 -0700)
misc/munin/tahoe-sharesperfile.py

index 1c9dbf583420fc2c6f0609e27af94f69476c04f4..a2420f2f0cd8b3b154071adec8063b1da43350d9 100644 (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)