diff options
author | root <root@colazero.tele.tg18.gathering.org> | 2018-03-31 22:28:26 +0200 |
---|---|---|
committer | root <root@colazero.tele.tg18.gathering.org> | 2018-03-31 22:28:26 +0200 |
commit | 38b48dd77b57b116f633b1cf5d68cc70a44b1ea8 (patch) | |
tree | 52b6b4a1af7c4aff3321f4ce60e88d4a483ba315 /web/api/public/ping | |
parent | be54730288b9925003e88788e65f11199cc8292b (diff) |
Throw TG18-stuff over the wall
Diffstat (limited to 'web/api/public/ping')
-rwxr-xr-x | web/api/public/ping | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/api/public/ping b/web/api/public/ping index 1928368..be37875 100755 --- a/web/api/public/ping +++ b/web/api/public/ping @@ -4,7 +4,7 @@ use strict; use warnings; use nms::web; -nms::web::setwhen('15s'); +nms::web::setwhen('25s'); my $q = $nms::web::dbh->prepare("SELECT DISTINCT ON (sysname) (" . $nms::web::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)"); @@ -37,5 +37,5 @@ while ( my $ref = $lq->fetchrow_hashref() ) { } $nms::web::cc{'max-age'} = "1"; -$nms::web::cc{'stale-while-revalidate'} = "15"; +$nms::web::cc{'stale-while-revalidate'} = "5"; finalize_output(); |