From d690d2c94e472154fb1e943617242c7caec5e331 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 24 Sep 2006 23:17:36 +0000 Subject: MFC 14473 Make sure we test for databases without interface information. e.g. spamd. Fixes report made in forum. --- usr/local/www/status_rrd_graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') 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 "Analysis for $curif -- $interval $curgraph
"; PRINT "\n\"$ifname

"; -- cgit v1.1