From 8fac32c4f3fde7bd2e0305dabe665187a14c1a1b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 17 Apr 2018 18:10:06 +0200 Subject: [PATCH] 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. --- munin/cubemap | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2