summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-03-30 20:36:53 -0400
committerjim-p <jimp@pfsense.org>2011-03-30 20:36:53 -0400
commit857a4a79864a4b250271e5a5648ddb2a3ad249ee (patch)
treec3cb4c5e490d33bfd84c17c73f02b720917ce18f /etc
parent56a8bbf3af358cdefed37da150189d2fff78fd73 (diff)
downloadpfsense-857a4a79864a4b250271e5a5648ddb2a3ad249ee.zip
pfsense-857a4a79864a4b250271e5a5648ddb2a3ad249ee.tar.gz
Use a different loop counter variable to avoid a name collision
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/rrd.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index 7b7db68..92764d0 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -457,14 +457,14 @@ function enable_rrd_graphing() {
if($g['booting']) {
$rrdqcommand = "-t ";
$rrducommand = "N";
- $q = 0;
+ $qi = 0;
foreach ($qlist as $qname => $q) {
- if($q == 0) {
+ if($qi == 0) {
$rrdqcommand .= "{$qname}";
} else {
$rrdqcommand .= ":{$qname}";
}
- $q++;
+ $qi++;
$rrducommand .= ":U";
}
mwexec("$rrdtool update $rrddbpath$ifname$queues $rrdqcommand $rrducommand");
OpenPOWER on IntegriCloud