diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2015-04-05 10:02:14 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2015-04-05 10:02:14 +0200 |
commit | 8c287cef0f5619a1f9bf00095382000ad68527c2 (patch) | |
tree | 4cd70f137682ec692cce6e36b9100b9be04f29e2 /web/nms.gathering.org/aggregated_traffic.pl | |
parent | 835f0309e46765a6e92d8aab178b937c74425359 (diff) |
TG15 cleaning: Remove unused files
Diffstat (limited to 'web/nms.gathering.org/aggregated_traffic.pl')
-rwxr-xr-x | web/nms.gathering.org/aggregated_traffic.pl | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/web/nms.gathering.org/aggregated_traffic.pl b/web/nms.gathering.org/aggregated_traffic.pl deleted file mode 100755 index e2f3d97..0000000 --- a/web/nms.gathering.org/aggregated_traffic.pl +++ /dev/null @@ -1,25 +0,0 @@ -#! /usr/bin/perl -use strict; -use DBI; -use lib '../../include'; -use nms; -use CGI; -use File::Basename; -my $cwd = dirname($0); -my $dbh = nms::db_connect(); - -my $cgi = CGI->new; - -print $cgi->header(-type=>'text/json', -expires=>'now'); - -my $q = $dbh->prepare('select sum(n1.sum_in) as sum_in, sum(n1.sum_out) as sum_out from (select sum(ifhcinoctets) as sum_in, sum(ifhcoutoctets) as sum_out from polls where time >= now() - \'15 minutes\'::interval group by switch) as n1'); -$q->execute(); -while (my $ref = $q->fetchrow_hashref()) { - my $bitsface = $ref->{'sum_in'}/900/8; - - print <<"EOF"; -{ - "sum_in": "$bitsface" -} -EOF -} |