aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/private/snmp
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-21 12:26:19 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-21 12:26:19 +0100
commit0eb9e5b5e2c6f6ac34bc5119f0e4011e0dbf79e6 (patch)
tree922a19e11f38028c737f90bd25ff0867df96859d /web/nms.gathering.org/api/private/snmp
parente2c018a18d972679160220b6cf76fa1a337e0a08 (diff)
parent7a1eea87c3cffd208f66e93c04a73e40045f3ef2 (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/api/private/snmp')
-rwxr-xr-xweb/nms.gathering.org/api/private/snmp3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/private/snmp b/web/nms.gathering.org/api/private/snmp
index 4779659..f69ca62 100755
--- a/web/nms.gathering.org/api/private/snmp
+++ b/web/nms.gathering.org/api/private/snmp
@@ -13,7 +13,8 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "10";
-my $q = $nms::web::dbh->prepare('select sysname,data from snmp natural join switches where id in (select max(id) from snmp where ' . $nms::web::when . 'group by switch);');
+my $q = $nms::web::dbh->prepare('select sysname,data from snmp natural join switches where id in (select max(id) from snmp where '
+ . $nms::web::when . 'group by switch);');
$q->execute();
while (my $ref = $q->fetchrow_hashref()) {