aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public/switch-state
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/public/switch-state')
-rwxr-xr-xweb/api/public/switch-state2
1 files changed, 0 insertions, 2 deletions
diff --git a/web/api/public/switch-state b/web/api/public/switch-state
index d1495d5..8e98205 100755
--- a/web/api/public/switch-state
+++ b/web/api/public/switch-state
@@ -7,7 +7,6 @@ use strict;
use warnings;
use Data::Dumper;
-print "Content-type: text/plain\n\n";
my $target = $ENV{REQUEST_URI};
$target =~ s/$ENV{SCRIPT_NAME}//;
$target =~ s/^\///;
@@ -20,7 +19,6 @@ if (!defined($switch)) {
$q = $nms::web::dbh->prepare('select sysname,extract(epoch from date_trunc(\'second\',time)) as time,data from snmp natural join switches where id in (select max(id) from snmp where ' . $nms::web::when . 'group by switch) and sysname = ' . $nms::web::dbh->quote($switch) . ';');
}
-print "s: $switch, p: $port\n";
$q->execute();
while ( my $ref = $q->fetchrow_hashref() ) {
my $sysname = $ref->{'sysname'};