From 97458a2e08d5bf4904553eb76467fb047e4719f4 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 10 Feb 2021 12:04:23 +0100 Subject: Add timestamp offset to management server for EDI input --- doc/show_dabmux_stats.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/show_dabmux_stats.py b/doc/show_dabmux_stats.py index 5bb6605..12cad1e 100755 --- a/doc/show_dabmux_stats.py +++ b/doc/show_dabmux_stats.py @@ -46,7 +46,7 @@ if len(sys.argv) == 1: data = sock.recv().decode("utf-8") values = json.loads(data)['values'] - tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}{audioleft:>8}{audioright:>8}{peakleft:>8}{peakright:>8}{state:>16}{version:>48}{uptime:>8}" + tmpl = "{ident:20}{maxfill:>8}{minfill:>8}{under:>8}{over:>8}{audioleft:>8}{audioright:>8}{peakleft:>8}{peakright:>8}{state:>16}{version:>48}{uptime:>8}{offset:>8}" print(tmpl.format( ident="id", maxfill="max", @@ -59,7 +59,8 @@ if len(sys.argv) == 1: peakright="peak R", state="state", version="version", - uptime="uptime")) + uptime="uptime", + offset="offset")) for ident in values: v = values[ident]['inputstat'] @@ -85,7 +86,8 @@ if len(sys.argv) == 1: peakright=v['peak_right_slow'], state=v['state'], version=v['version'], - uptime=v['uptime'])) + uptime=v['uptime'], + offset=v['last_tist_offset'])) elif len(sys.argv) == 2 and sys.argv[1] == "config": -- cgit v1.2.3