fixed to avoid results garbled when a defined Application is shutdown. #89

This commit is contained in:
Jordi Sanfeliu 2015-03-30 12:49:16 +02:00
parent c53a325141
commit c858dac61b
1 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,8 @@ sub wowza_update {
my $e2 = 0; my $e2 = 0;
foreach my $an (split(',', $wowza->{desc}->{$wls})) { foreach my $an (split(',', $wowza->{desc}->{$wls})) {
my $found = 0;
foreach my $entry (@app) { foreach my $entry (@app) {
my $conntacc = 0; my $conntacc = 0;
my $conntrej = 0; my $conntrej = 0;
@ -352,9 +354,11 @@ sub wowza_update {
$rrdata .= ":" . ($stream->{SessionsTotal} || 0); $rrdata .= ":" . ($stream->{SessionsTotal} || 0);
$rrdata .= ":" . "0:0"; $rrdata .= ":" . "0:0";
$e2++; $e2++;
$found = 1;
last; last;
} }
} }
$rrdata .= ":0:0:0:0:0:0:0:0:0:0:0:0:0:0:0" if !$found;
} }
while($e2 < 8) { while($e2 < 8) {
$rrdata .= ":0:0:0:0:0:0:0:0:0:0:0:0:0:0:0"; $rrdata .= ":0:0:0:0:0:0:0:0:0:0:0:0:0:0:0";