From 1ebd4c9030827857eb0c7f665324e18ceefbe1f5 Mon Sep 17 00:00:00 2001 From: Yoann QUERET Date: Tue, 6 Oct 2015 15:09:43 +0200 Subject: Replace - to _ in sub name to be compatible with munin script. --- doc/stats_dabmux_multi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py index 8e58c00..05f52af 100755 --- a/doc/stats_dabmux_multi.py +++ b/doc/stats_dabmux_multi.py @@ -101,13 +101,13 @@ if len(sys.argv) == 1: munin_values = "" for ident in values: v = values[ident]['inputstat'] - munin_values += "multigraph buffers_{ident}\n".format(ident=ident) + munin_values += "multigraph buffers_{ident}\n".format(ident=ident.replace('-', '_')) munin_values += "high.value {}\n".format(v['max_fill']) munin_values += "low.value {}\n".format(v['min_fill']) - munin_values += "multigraph over_underruns_{ident}\n".format(ident=ident) + munin_values += "multigraph over_underruns_{ident}\n".format(ident=ident.replace('-', '_')) munin_values += "underruns.value {}\n".format(v['num_underruns']) munin_values += "overruns.value {}\n".format(v['num_overruns']) - munin_values += "multigraph audio_levels_{ident}\n".format(ident=ident) + munin_values += "multigraph audio_levels_{ident}\n".format(ident=ident.replace('-', '_')) munin_values += "left.value {}\n".format(v['peak_left']) munin_values += "right.value {}\n".format(v['peak_right']) -- cgit v1.2.3