From b852b5cd883b3d059bc3744fc7b130531a5f20ed Mon Sep 17 00:00:00 2001 From: Bryce Chidester Date: Sat, 24 Jan 2015 14:15:26 -0800 Subject: Remove conflicting variable $g in mailreports' mail_report_generate_graph() Fixes #4281 --- config/mailreport/mail_reports.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/mailreport') diff --git a/config/mailreport/mail_reports.inc b/config/mailreport/mail_reports.inc index 669b1541..20632a2e 100644 --- a/config/mailreport/mail_reports.inc +++ b/config/mailreport/mail_reports.inc @@ -532,7 +532,7 @@ function mail_report_generate_graph($database, $style, $graph, $start, $end) { $graphcmd .= "--height 200 --width 620 "; $iflist = get_configured_interface_list(); - $g = 0; + $h = 0; $operand = ""; $comma = ""; $graphtputbip = ""; @@ -578,7 +578,7 @@ function mail_report_generate_graph($database, $style, $graph, $start, $end) { $graphcmd .= "CDEF:\"{$ifname}-bytes_out_t_block={$ifname}-out_bytes,0,$speedlimit,LIMIT,UN,0,{$ifname}-out_bytes_block,IF,$seconds,*\" "; $graphcmd .= "CDEF:\"{$ifname}-bytes_t_pass={$ifname}-bytes_in_t_pass,{$ifname}-bytes_out_t_pass,+\" "; $graphcmd .= "CDEF:\"{$ifname}-bytes_t_block={$ifname}-bytes_in_t_block,{$ifname}-bytes_out_t_block,+\" "; - if ($g > 0) { + if ($h > 0) { $operand .= ",+"; $comma = ","; } @@ -594,7 +594,7 @@ function mail_report_generate_graph($database, $style, $graph, $start, $end) { $graphtputbyob .= "{$comma}{$ifname}-bytes_out_t_block"; $graphtputbytp .= "{$comma}{$ifname}-bytes_t_pass"; $graphtputbytb .= "{$comma}{$ifname}-bytes_t_block"; - $g++; + $h++; } $graphcmd .= "CDEF:\"tput-in_bits_pass={$graphtputbip}{$operand}\" "; $graphcmd .= "CDEF:\"tput-out_bits_pass={$graphtputbop}{$operand}\" "; -- cgit v1.2.3