aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/private/port-state
diff options
context:
space:
mode:
Diffstat (limited to 'web/nms.gathering.org/api/private/port-state')
-rwxr-xr-xweb/nms.gathering.org/api/private/port-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/private/port-state b/web/nms.gathering.org/api/private/port-state
index 6410805..1f30181 100755
--- a/web/nms.gathering.org/api/private/port-state
+++ b/web/nms.gathering.org/api/private/port-state
@@ -6,7 +6,7 @@ use nms::web;
use strict;
use warnings;
-my $query = 'select sysname,extract(epoch from date_trunc(\'second\',time)) as time, '.$nms::web::ifname.',ifhighspeed,ifhcinoctets,ifhcoutoctets from polls natural join switches where time in (select max(time) from polls where ' . $nms::web::when . ' group by switch,ifname);';
+my $query = 'select sysname,extract(epoch from date_trunc(\'second\',time)) as time, ifname,ifhighspeed,ifhcinoctets,ifhcoutoctets from polls natural join switches where time in (select max(time) from polls where ' . $nms::web::when . ' group by switch,ifname);';
my $q = $nms::web::dbh->prepare($query);
$q->execute();