summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-24 23:17:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-24 23:17:36 +0000
commitd690d2c94e472154fb1e943617242c7caec5e331 (patch)
tree9fda5cc60457726e2161917453d35b82aa1afb9d /usr/local/www/status_rrd_graph.php
parent265ccfc327e6d5c2352bbed6e7c0202e780600e5 (diff)
downloadpfsense-d690d2c94e472154fb1e943617242c7caec5e331.zip
pfsense-d690d2c94e472154fb1e943617242c7caec5e331.tar.gz
MFC 14473
Make sure we test for databases without interface information. e.g. spamd. Fixes report made in forum.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 60f7d5b..b40f23b 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -108,7 +108,7 @@ foreach ($graphs as $graph => $graphd) {
$periods = array("2h", "6h", "48h", "14d", "2m", "18m");
-if(file_exists("{$rrddbpath}{$curif}-{$curgraph}.rrd")) {
+if((file_exists("{$rrddbpath}{$curif}-{$curgraph}.rrd")) or (file_exists("{$rrddbpath}{$curgraph}.rrd"))) {
foreach($periods as $period => $interval) {
PRINT "<B>Analysis for $curif -- $interval $curgraph</B><BR>";
PRINT "\n<IMG BORDER='1' name='{$curif}-{$interval}-{$curgraph}' id='{$curif}-{$interval}-{$curgraph}' ALT=\"$ifname $curgraph Graph\" SRC=\"status_rrd_graph_img.php?if=$curif&interval=$interval&graph=$curgraph&style={$curstyle}&color={$curcolor}\"><BR><BR>";
OpenPOWER on IntegriCloud