From: robk-tahoe Date: Fri, 1 Feb 2008 02:21:17 +0000 (-0700) Subject: munin stats: change truncated nodeid to 4 char (not 8) X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=e910a64e7df88d4f4201d1516fb50fd13b05fd93;p=tahoe-lafs%2Ftahoe-lafs.git munin stats: change truncated nodeid to 4 char (not 8) --- diff --git a/misc/munin/tahoe-stats.py b/misc/munin/tahoe-stats.py index 1f09b3c3..766f2246 100644 --- a/misc/munin/tahoe-stats.py +++ b/misc/munin/tahoe-stats.py @@ -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']