aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2019-01-06 01:50:24 +0100
committerKristian Lyngstol <kly@kly.no>2019-01-06 01:50:24 +0100
commit4558d453f06a233a3df020223786071f007f9e2c (patch)
treed7d7dcb52d503307f19d35db62be4356827ea94f /web/api/public
parent877ec9669d5185487bbebd6a4528f7c5b91f8d96 (diff)
api/ping: remove linknet stuff (again)
This hasn't really been used and will probably be reimplemented before it would be used. Thus removed.
Diffstat (limited to 'web/api/public')
-rwxr-xr-xweb/api/public/ping6
1 files changed, 0 insertions, 6 deletions
diff --git a/web/api/public/ping b/web/api/public/ping
index be37875..52dffbc 100755
--- a/web/api/public/ping
+++ b/web/api/public/ping
@@ -29,12 +29,6 @@ while (my $ref = $q2->fetchrow_hashref()) {
my ( $h, $m, $s ) = split( ':|\.', $ref->{'age'} );
$nms::web::json{'switches'}{$ref->{'sysname'}}{'age6'} = ($h*60*60) + ($m*60) + $s; # $$ref->{'age'};
}
-my $lq = $nms::web::dbh->prepare("SELECT DISTINCT ON (linknet) linknet, latency1_ms, latency2_ms FROM linknet_ping WHERE "
- . $nms::web::when . " ORDER BY linknet, time DESC;");
-$lq->execute();
-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";