diff options
author | Magnus Kirø <magnuskiro@gmail.com> | 2016-03-20 20:33:02 +0100 |
---|---|---|
committer | Magnus Kirø <magnuskiro@gmail.com> | 2016-03-20 20:33:02 +0100 |
commit | b5b57c04f96b3ddedf8b94dc2188e9d421b53cde (patch) | |
tree | e3542bdc29e103fe73083cf02b69335eec7adf07 | |
parent | 65bc1d20d443c987df5681b87967974c12169ed1 (diff) |
line breakup in snmp
-rwxr-xr-x | web/nms.gathering.org/api/private/snmp | 3 |
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()) { |