summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-01-15 20:17:43 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-01-15 20:17:43 +0000
commita3c72e2374916a4dbb2b42448e8b5ff01114d006 (patch)
tree89ea99eea8438ae4e7e0f0b9c7abfb958abec671 /etc
parent867b013e7dfeb4713a57d07cbbf7b146fe88aa6a (diff)
downloadpfsense-a3c72e2374916a4dbb2b42448e8b5ff01114d006.zip
pfsense-a3c72e2374916a4dbb2b42448e8b5ff01114d006.tar.gz
Fix indenation and possible conflicting variable naming (future commits)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index c5109da..9e8845a 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2194,15 +2194,15 @@ function enable_rrd_graphing() {
/* the ping test function. We call this on the last line */
$rrdupdatesh .= "get_quality_stats_{$ifname} () {\n";
- $rrdupdatesh .= "packetloss=100\n";
- $rrdupdatesh .= " roundtrip=0\n";
- $rrdupdatesh .= " local out\n";
- $rrdupdatesh .= " out=$btick ping -c $numpings -q $monitorip $btick\n";
+ $rrdupdatesh .= " packetloss_{$ifname}=100\n";
+ $rrdupdatesh .= " roundtrip_{$ifname}=0\n";
+ $rrdupdatesh .= " local out_{$ifname}\n";
+ $rrdupdatesh .= " out_{$ifname}=$btick ping -c $numpings -q $monitorip $btick\n";
$rrdupdatesh .= " if [ $? -eq 0 ]; then\n";
- $rrdupdatesh .= " packetloss=$btick echo \$out | cut -f18 -d' ' | cut -c -1 $btick\n";
- $rrdupdatesh .= " roundtrip=$btick echo \$out | cut -f24 -d' ' | cut -f2 -d'/' $btick\n";
+ $rrdupdatesh .= " packetloss_{$ifname}=$btick echo \$out | cut -f18 -d' ' | cut -c -1 $btick\n";
+ $rrdupdatesh .= " roundtrip_{$ifname}=$btick echo \$out | cut -f24 -d' ' | cut -f2 -d'/' $btick\n";
$rrdupdatesh .= " fi\n";
- $rrdupdatesh .= " $rrdtool update $rrddbpath$ifname$quality N:\$packetloss:\$roundtrip\n";
+ $rrdupdatesh .= " $rrdtool update $rrddbpath$ifname$quality N:\$packetloss_{$ifname}:\$roundtrip_{$ifname}\n";
$rrdupdatesh .= "}\n\n";
$rrdupdatesh .= "get_quality_stats_{$ifname} &\n\n";
OpenPOWER on IntegriCloud