diff options
| author | Jeff Carr <[email protected]> | 2023-12-16 09:36:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-16 09:36:40 -0600 |
| commit | e9f1723dbc8dab3bd84f7006723f6ae9c97df88c (patch) | |
| tree | 347243f04017721251f61292646c75cf307b2d1a /main.go | |
| parent | 27696b976485f989d664f330e9c328de93e8e672 (diff) | |
hostname check basically working
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -25,16 +25,16 @@ func main() { me.ipmap = make(map[string]*IPtype) me.dnsmap = make(map[string]*IPtype) me.ifmap = make(map[int]*IFtype) - me.dnsTTL = 5 // recheck DNS is working every 2 minutes // TODO: watch rx packets? + me.dnsTTL = 2 // recheck DNS is working every 2 minutes // TODO: watch rx packets? // will set all debugging flags // gui.SetDebug(true) // myGui = gui.New().InitEmbed(resToolkit).LoadToolkit("gocui") myGui = gui.New().Default() - sleep(1) + sleep(.2) setupControlPanelWindow() - sleep(1) + sleep(.2) if (args.GuiDebug) { gui.DebugWindow() } @@ -49,9 +49,8 @@ func main() { */ func checkNetworkChanges() { var ttl int = 0 - var ttlsleep int = 5 for { - sleep(ttlsleep) + sleep(0.5) ttl -= 1 if (ttl < 0) { if (runtime.GOOS == "linux") { |
