summaryrefslogtreecommitdiffstats
path: root/doc/show_dabmux_stats.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-07 15:28:21 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-07 15:28:21 +0100
commitc85c9cc40d05c89b3fa6de997590ab488c13cb2e (patch)
tree58064e74c67320727ca794c11e004d14d1a0e647 /doc/show_dabmux_stats.py
parentf7addcf7d00621f0973f2c6a997893ff3d7f6c3e (diff)
downloaddabmux-c85c9cc40d05c89b3fa6de997590ab488c13cb2e.tar.gz
dabmux-c85c9cc40d05c89b3fa6de997590ab488c13cb2e.tar.bz2
dabmux-c85c9cc40d05c89b3fa6de997590ab488c13cb2e.zip
Introduce slow peak statistic, averaging over 5 minutes
Diffstat (limited to 'doc/show_dabmux_stats.py')
-rwxr-xr-xdoc/show_dabmux_stats.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/show_dabmux_stats.py b/doc/show_dabmux_stats.py
index 1216593..d226208 100755
--- a/doc/show_dabmux_stats.py
+++ b/doc/show_dabmux_stats.py
@@ -46,13 +46,15 @@ if len(sys.argv) == 1:
data = sock.recv()
values = json.loads(data)['values']
- tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}{peakleft:>8}{peakright:>8}{state:>16}"
+ tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}{audioleft:>8}{audioright:>8}{peakleft:>8}{peakright:>8}{state:>16}"
print(tmpl.format(
ident="id",
maxfill="max",
minfill="min",
under="under",
over="over",
+ audioleft="audio L",
+ audioright="audio R",
peakleft="peak L",
peakright="peak R",
state="state"))
@@ -69,8 +71,10 @@ if len(sys.argv) == 1:
minfill=v['min_fill'],
under=v['num_underruns'],
over=v['num_overruns'],
- peakleft=v['peak_left'],
- peakright=v['peak_right'],
+ audioleft=v['peak_left'],
+ audioright=v['peak_right'],
+ peakleft=v['peak_left_slow'],
+ peakright=v['peak_right_slow'],
state=v['state']))