summaryrefslogtreecommitdiffstats
path: root/etc/inc/rrd.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-12-07 09:43:38 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-12-07 09:43:38 +0100
commit65615d899e7a861a612b985c73240ab507ee0477 (patch)
tree8e97879422cf867ba4a3e671a8b27b215eeb4127 /etc/inc/rrd.inc
parentf5476f2a7834957873dde25241eeb14b8cf2b80c (diff)
downloadpfsense-65615d899e7a861a612b985c73240ab507ee0477.zip
pfsense-65615d899e7a861a612b985c73240ab507ee0477.tar.gz
Make sure that do not set the interface to a empty value, this affects the ipsec counters.
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r--etc/inc/rrd.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index c61a732..8f5c270 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -258,7 +258,10 @@ function enable_rrd_graphing() {
foreach ($ifdescrs as $realif => $ifdescr) {
$ifname = $ifdescr['friendly'];
$state = $ifdescr['up'];
- $realif = get_real_interface($ifname);
+ $temp = get_real_interface($ifname);
+ if($temp <> "") {
+ $realif = $temp;
+ }
/* skip interfaces that do not have a friendly name */
if ("$ifname" == "") {
OpenPOWER on IntegriCloud