summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 02:21:56 -0600
committerJeff Carr <[email protected]>2024-01-06 02:21:56 -0600
commit01eca8fc107e287432e7f49752ad3c0932e2562b (patch)
tree2ae9f37d8ac6fd3d92457b374f8d41aee2f810ab /main.go
parentca3a01f478aa60fb039892d2cae6823188b5842c (diff)
all engines still firing
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 5 insertions, 11 deletions
diff --git a/main.go b/main.go
index 232204c..f417b86 100644
--- a/main.go
+++ b/main.go
@@ -44,6 +44,9 @@ func main() {
log.Sleep(me.artificialSleep)
setupControlPanelWindow()
+ me.digStatus = NewDigStatusWindow(me.myGui)
+ me.status = NewHostnameStatusWindow(me.myGui)
+
if debugger.ArgDebug() {
log.Sleep(2)
debugger.DebugWindow(me.myGui)
@@ -121,24 +124,15 @@ func DNSloop() {
log.Info("dnsTTL() execution Time: ", duration)
var s, newSpeed string
if (duration > 5000 * time.Millisecond ) {
- newSpeed = "VERY BAD"
- suggestProcDebugging()
+ newSpeed = "VERY SLOW"
} else if (duration > 2000 * time.Millisecond ) {
- newSpeed = "BAD"
- suggestProcDebugging()
+ newSpeed = "SLOWER"
} else if (duration > 500 * time.Millisecond ) {
- suggestProcDebugging()
newSpeed = "SLOW"
} else if (duration > 100 * time.Millisecond ) {
newSpeed = "OK"
- if (me.fixProc != nil) {
- // me.fixProc.Disable()
- }
} else {
newSpeed = "FAST"
- if (me.fixProc != nil) {
- // me.fixProc.Disable()
- }
}
if (newSpeed != me.DnsSpeedLast) {
log.Log(CHANGE, "dns lookup speed changed =", newSpeed)