From dab2264c7aa9c7af7b805312670917c8b5cf6c27 Mon Sep 17 00:00:00 2001 From: Matej Kramny Date: Sun, 12 Feb 2017 20:05:04 -0800 Subject: [PATCH] Comment out unused code --- dns.go | 4 +--- monitor.go | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dns.go b/dns.go index 133a890..6fe9372 100644 --- a/dns.go +++ b/dns.go @@ -2,10 +2,8 @@ package cachet import ( "net" - - "strings" - "regexp" + "strings" "github.com/Sirupsen/logrus" "github.com/miekg/dns" diff --git a/monitor.go b/monitor.go index e508c83..f7cbba6 100644 --- a/monitor.go +++ b/monitor.go @@ -50,10 +50,10 @@ type AbstractMonitor struct { // lag / average(lagHistory) * 100 = percentage above average lag // PerformanceThreshold sets the % limit above which this monitor will trigger degraded-performance - PerformanceThreshold float32 + // PerformanceThreshold float32 - history []bool - lagHistory []float32 + history []bool + // lagHistory []float32 lastFailReason string incident *Incident config *CachetMonitor