Check that file exists, not !

This commit is contained in:
Scott Ullrich 2006-04-11 21:46:10 +00:00
parent 6a21243ab8
commit 00a19a88c4

View File

@ -2018,7 +2018,7 @@ function enable_rrd_graphing()
}
$a_queues = &$config['shaper']['queue'];
if((! file_exists("$rrddbpath$ifname$queues")) && (isset($config['shaper']['enable']))) {
if((file_exists("$rrddbpath$ifname$queues")) && (isset($config['shaper']['enable']))) {
/* create rrd file if it does not exist */
$rrdcreate = "$rrdtool create $rrddbpath$ifname$queues --step $rrdqueuesinterval \\\n";
/* loop list of shaper queues */