From 31aa8dc0e14ff22d1f1492be0fdd0922027d7fcb Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 1 Jul 2016 18:48:56 +0200 Subject: Remove debug output and fix linknet-adding in nightmode --- web/api/public/switch-state | 2 -- web/index.html | 10 +++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'web') 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'}; diff --git a/web/index.html b/web/index.html index 655204e..bcc1d76 100644 --- a/web/index.html +++ b/web/index.html @@ -113,9 +113,13 @@

Add linknet

- - - +
+
+ + + +
+

-- cgit v1.2.3