Merge branch 'patch-1' of github.com:k3a/Monitorix into k3a-patch-1

This commit is contained in:
Jordi Sanfeliu 2013-06-12 14:51:16 +02:00
commit bd911ff72f
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ sub nginx_update {
my $val;
open(IN, "iptables -nxvL INPUT |");
while(<IN>) {
if(/ nginx_IN /) {
if(/ monitorix_nginx_IN /) {
(undef, $val) = split(' ', $_);
chomp($val);
$in = $val - ($config->{nginx_hist}->{'in'} || 0);
@ -155,7 +155,7 @@ sub nginx_update {
close(IN);
open(IN, "iptables -nxvL OUTPUT |");
while(<IN>) {
if(/ nginx_IN /) {
if(/ monitorix_nginx_IN /) {
(undef, $val) = split(' ', $_);
chomp($val);
$out = $val - ($config->{nginx_hist}->{'out'} || 0);