projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d89b1
)
munin/tahoe-sharesperfile: don't truncate to an int, emit a float instead
author
Brian Warner
<warner@allmydata.com>
Thu, 23 Aug 2007 23:31:15 +0000
(16:31 -0700)
committer
Brian Warner
<warner@allmydata.com>
Thu, 23 Aug 2007 23:31:15 +0000
(16:31 -0700)
misc/munin/tahoe-sharesperfile.py
patch
|
blob
|
history
diff --git
a/misc/munin/tahoe-sharesperfile.py
b/misc/munin/tahoe-sharesperfile.py
index 1c9dbf583420fc2c6f0609e27af94f69476c04f4..a2420f2f0cd8b3b154071adec8063b1da43350d9 100644
(file)
--- 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)