]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
munin stats: change truncated nodeid to 4 char (not 8)
authorrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 1 Feb 2008 02:21:17 +0000 (19:21 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 1 Feb 2008 02:21:17 +0000 (19:21 -0700)
misc/munin/tahoe-stats.py

index 1f09b3c33027ececb1940a729496f7a4b8945a92..766f22460f953d174941b8cf4964c89a144ceab9 100644 (file)
@@ -124,7 +124,7 @@ def main(argv):
 
     def output_nodes(output_section):
         for tubid, nodestats in stats.items():
-            name = smash_name("%s_%s" % (nodestats['nickname'], tubid[:8]))
+            name = smash_name("%s_%s" % (nodestats['nickname'], tubid[:4]))
             #value = nodestats['stats'][plugin_conf['category']].get(plugin_conf['statid'])
             category = plugin_conf['category']
             statid = plugin_conf['statid']