diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-26 10:14:02 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-26 10:14:02 +0200 |
commit | 668ce1f9e7413c242a7a7e8ba033c8058ebff03e (patch) | |
tree | ad3f705a5e4fd63fb0a9df91d58fc04aa1116c89 /usr/local/www/status_rrd_graph_img.php | |
parent | d67d99a1850ad03539f751890956b58743416e6f (diff) | |
download | pfsense-668ce1f9e7413c242a7a7e8ba033c8058ebff03e.zip pfsense-668ce1f9e7413c242a7a7e8ba033c8058ebff03e.tar.gz |
Increase the minimum time between generating images from 5 to 15 seconds to prevent DoS the firewall.
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |