From: Steinar H. Gunderson Date: Tue, 17 Apr 2018 16:10:06 +0000 (+0200) Subject: Make the Munin plugin count downloading fragments as equivalent to the stream. X-Git-Tag: 1.4.0~13 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=8fac32c4f3fde7bd2e0305dabe665187a14c1a1b;ds=sidebyside Make the Munin plugin count downloading fragments as equivalent to the stream. This doesn't really fix the full issue of counting HLS clients, but at least it's a start. --- diff --git a/munin/cubemap b/munin/cubemap index 8079d6e..b292982 100755 --- a/munin/cubemap +++ b/munin/cubemap @@ -46,6 +46,7 @@ while (<$stats>) { chomp; my ($ip, $fd, $mark, $stream, $connected_time, $bytes_sent, $loss_bytes, $loss_events) = /^(\S+) (\d+) (\d+) (\S+) (\d+) (\d+) (\d+) (\d+)/ or die "Invalid stats format"; + $stream =~ s/\?frag=.*//; ++$streams{$stream}; ++$total; }