diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-21 17:53:37 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-21 17:53:37 +0200 |
commit | c76643ccd3bc0f06f59774bb19c77ecc6e73a0f7 (patch) | |
tree | 8d08127cf4b89271c0403c9a2c3c0208bd6c090b /doc | |
parent | 74303a3633f533640ff95a94ff59dbdb16395b22 (diff) | |
download | dabmux-c76643ccd3bc0f06f59774bb19c77ecc6e73a0f7.tar.gz dabmux-c76643ccd3bc0f06f59774bb19c77ecc6e73a0f7.tar.bz2 dabmux-c76643ccd3bc0f06f59774bb19c77ecc6e73a0f7.zip |
Fix string formatting
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/stats_dabmux_multi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py index 05484ae..a2e4a3f 100755 --- a/doc/stats_dabmux_multi.py +++ b/doc/stats_dabmux_multi.py @@ -78,10 +78,10 @@ if len(sys.argv) == 1: munin_values = "" for ident in values: v = values[ident]['inputstat'] - munin_values += "multigraph buffers_{ident}\n".format(ident) + munin_values += "multigraph buffers_{ident}\n".format(ident=ident) 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) + munin_values += "multigraph over_underruns_{ident}\n".format(ident=ident) munin_values += "underruns.value {}\n".format(v['num_underruns']) munin_values += "overruns.value {}\n".format(v['num_overruns']) @@ -97,7 +97,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) + munin_config += config_template.format(ident=ident) print(munin_config) |