diff options
author | Kristian Lyngstol <kly@kly.no> | 2019-01-06 01:50:24 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2019-01-06 01:50:24 +0100 |
commit | 4558d453f06a233a3df020223786071f007f9e2c (patch) | |
tree | d7d7dcb52d503307f19d35db62be4356827ea94f /web/api/public/ping | |
parent | 877ec9669d5185487bbebd6a4528f7c5b91f8d96 (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/ping')
-rwxr-xr-x | web/api/public/ping | 6 |
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"; |