aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org/api/public/ping
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
commit5755c9a0ef2d72549aa6eb281c6769c8c171421d (patch)
treef13317e4903ec7de43e6fb46b6181a5730c27016 /web/nms-public.gathering.org/api/public/ping
parent04b13311cedf90f57db5d53feea7349a008f628b (diff)
parentec0d348139403d7caba4ee4cbb99d893d8c741b8 (diff)
Merge branch 'master' of ssh://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms-public.gathering.org/api/public/ping')
-rwxr-xr-xweb/nms-public.gathering.org/api/public/ping6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/nms-public.gathering.org/api/public/ping b/web/nms-public.gathering.org/api/public/ping
index ba572af..db46b00 100755
--- a/web/nms-public.gathering.org/api/public/ping
+++ b/web/nms-public.gathering.org/api/public/ping
@@ -4,7 +4,7 @@ use strict;
use warnings;
use nms::web;
-#nms::web::setwhen('1s');
+nms::web::setwhen('10s');
my $q = $nms::web::dbh->prepare("SELECT DISTINCT ON (sysname) (now() - time) as age,sysname, latency_ms FROM ping NATURAL JOIN switches WHERE time in (select max(time) from ping where "
. $nms::web::when . " group by switch)");
@@ -32,6 +32,6 @@ while ( my $ref = $lq->fetchrow_hashref() ) {
$nms::web::json{'linknets'}{$ref->{'linknet'}} = [ $ref->{'latency1_ms'}, $ref->{'latency2_ms'} ];
}
-$nms::web::cc{'max-age'} = "1";
-$nms::web::cc{'stale-while-revalidate'} = "5";
+$nms::web::cc{'max-age'} = "2";
+$nms::web::cc{'stale-while-revalidate'} = "15";
finalize_output();