summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-13 18:35:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-13 18:35:25 +0100
commit1318dab05f3c3b6c471e4919596744e889562034 (patch)
tree7ae2ecc693c769057c43e3da43706a4229289d03 /doc
parent8ec05409b48181aec03119c2fb01fa1377d4837b (diff)
parent1ebd4c9030827857eb0c7f665324e18ceefbe1f5 (diff)
downloaddabmux-1318dab05f3c3b6c471e4919596744e889562034.tar.gz
dabmux-1318dab05f3c3b6c471e4919596744e889562034.tar.bz2
dabmux-1318dab05f3c3b6c471e4919596744e889562034.zip
Merge remote-tracking branch 'yoann/next' into next
Fixes munin script and adds gui improvements
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/stats_dabmux_multi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py
index a2587a4..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'])
@@ -123,7 +123,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
munin_config = config_top
for conf in config['config']:
- munin_config += config_template.format(ident=conf)
+ munin_config += config_template.format(ident=conf.replace('-', '_'))
print(munin_config)
else: