aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/public/switches
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-03-10 19:15:17 +0000
committerKristian Lyngstol <kly@kly.no>2016-03-10 19:15:17 +0000
commit820287be1769b442f101a712a0f008b739f50699 (patch)
treeb8e8311257051ae4ddedbce3c755bc59bfb77c33 /web/nms.gathering.org/api/public/switches
parentb8314f8319f00c9bb507d67f11ab8e75d1ca659f (diff)
NMS: Tweak caching and updates
Diffstat (limited to 'web/nms.gathering.org/api/public/switches')
-rwxr-xr-xweb/nms.gathering.org/api/public/switches2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/public/switches b/web/nms.gathering.org/api/public/switches
index d62169c..4e3bbc8 100755
--- a/web/nms.gathering.org/api/public/switches
+++ b/web/nms.gathering.org/api/public/switches
@@ -12,7 +12,7 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "60";
-my $q2 = $nms::web::dbh->prepare('select switch,sysname,placement,ip,switchtype,poll_frequency,community,last_updated from switches');
+my $q2 = $nms::web::dbh->prepare('select switch,sysname,placement,ip,switchtype,poll_frequency,community,last_updated from switches where placement like null');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {