From 668ce1f9e7413c242a7a7e8ba033c8058ebff03e Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 26 May 2011 10:14:02 +0200 Subject: Increase the minimum time between generating images from 5 to 15 seconds to prevent DoS the firewall. --- usr/local/www/status_rrd_graph_img.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php index 15579f4..48581ce 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -1096,7 +1096,7 @@ else { /* check modification time to see if we need to generate image */ if (file_exists("$rrdtmppath$curdatabase-$curgraph.png")) { - if((time() - filemtime("$rrdtmppath$curdatabase-$curgraph.png")) >= 5 ) { + if((time() - filemtime("$rrdtmppath$curdatabase-$curgraph.png")) >= 15 ) { if($data) exec("$graphcmd 2>&1", $graphcmdoutput, $graphcmdreturn); $graphcmdoutput = implode(" ", $graphcmdoutput) . $graphcmd; -- cgit v1.1