From e910a64e7df88d4f4201d1516fb50fd13b05fd93 Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 31 Jan 2008 19:21:17 -0700 Subject: [PATCH] munin stats: change truncated nodeid to 4 char (not 8) --- misc/munin/tahoe-stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.45.2