diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-07 09:43:38 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-07 09:43:38 +0100 |
commit | 65615d899e7a861a612b985c73240ab507ee0477 (patch) | |
tree | 8e97879422cf867ba4a3e671a8b27b215eeb4127 | |
parent | f5476f2a7834957873dde25241eeb14b8cf2b80c (diff) | |
download | pfsense-65615d899e7a861a612b985c73240ab507ee0477.zip pfsense-65615d899e7a861a612b985c73240ab507ee0477.tar.gz |
Make sure that do not set the interface to a empty value, this affects the ipsec counters.
-rw-r--r-- | etc/inc/rrd.inc | 5 |
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" == "") { |