summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-02 22:49:51 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-02 22:49:51 +0100
commitfbcdaf2188f3dfa5d74beade8ab3e8d7390402e9 (patch)
treeb1563655c84afb1af834338a3c4718cef9b8e15c /lib
parentec431db3b0948bb8f4400d611325ce0b0495a3ad (diff)
downloadsmokeping-fbcdaf2188f3dfa5d74beade8ab3e8d7390402e9.tar.gz
smokeping-fbcdaf2188f3dfa5d74beade8ab3e8d7390402e9.tar.xz
don't reload the pages more frequently than every 2 minutes
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 46946e1..e2c0421 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1421,8 +1421,9 @@ sub display_webpage($$){
smokelogo => '<A HREF="http://oss.oetiker.ch/smokeping/counter.cgi/'.$VERSION.'"><img border="0" src="'.$cfg->{General}{imgurl}.'/smokeping.png"></a>',
}
);
+ my $expi = $cfg->{Database}{step} > 120 ? $cfg->{Database}{step} : 120;
print $q->header(-type=>'text/html',
- -expires=>'+'.($cfg->{Database}{step}).'s',
+ -expires=>'+'.$expi.'s',
-charset=> ( $cfg->{Presentation}{charset} || 'iso-8859-15'),
-Content_length => length($page),
);