diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-25 11:40:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-25 11:40:08 +0200 |
commit | c2d059211d4776363b1259cd1bb0ad5eee42cc97 (patch) | |
tree | ec4fd41752d0e52fcfd1181e8c6addbd39c13227 /show_dabmux_stats.py | |
parent | 7f04c9df97959e365dc3555abdc7da3f11b0dc7a (diff) | |
download | mmbtools-aux-c2d059211d4776363b1259cd1bb0ad5eee42cc97.tar.gz mmbtools-aux-c2d059211d4776363b1259cd1bb0ad5eee42cc97.tar.bz2 mmbtools-aux-c2d059211d4776363b1259cd1bb0ad5eee42cc97.zip |
add audio levels to show_dabmux_stats.py
Diffstat (limited to 'show_dabmux_stats.py')
-rwxr-xr-x | show_dabmux_stats.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/show_dabmux_stats.py b/show_dabmux_stats.py index 432ace4..76ee71b 100755 --- a/show_dabmux_stats.py +++ b/show_dabmux_stats.py @@ -31,22 +31,26 @@ if len(sys.argv) == 1: sock.send("values\n") values = json.loads(sock.recv(SOCK_RECV_SIZE))['values'] - tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}" + tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}{peakleft:>8}{peakright:>8}" print(tmpl.format( ident="id", maxfill="max", minfill="min", under="under", - over="over")) + over="over", + peakleft="peak L", + peakright="peak R")) for ident in values: v = values[ident]['inputstat'] print(tmpl.format( - ident=ident, + ident=ident, maxfill=v['max_fill'], minfill=v['min_fill'], under=v['num_underruns'], - over=v['num_overruns'])) + over=v['num_overruns'], + peakleft=v['peak_left'], + peakright=v['peak_right'])) elif len(sys.argv) == 2 and sys.argv[1] == "config": |