From c8ed4d42d02f2b5a51c663faf68b46bce69fb63a Mon Sep 17 00:00:00 2001 From: Shaun Agostinho Date: Fri, 12 Jul 2024 14:21:40 -0700 Subject: [PATCH] added sequence reset --- env.go | 2 +- probes/trafficsim.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/env.go b/env.go index 941948d..414f68c 100644 --- a/env.go +++ b/env.go @@ -12,7 +12,7 @@ const ( defaultConfig = "HOST=https://api.netwatcher.io\nHOST_WS=wss://api.netwatcher.io/agent_ws\nID=PUT AGENT ID/SECRET HERE\nPIN=PUT PIN HERE\n" ) -const VERSION = "1.2.1b2" +const VERSION = "1.2.1b3" func loadConfig(configFile string) error { fmt.Printf("NetWatcher v%s - Copyright (c) 2023-%d Shaun Agostinho\n", VERSION, time.Now().Year()) diff --git a/probes/trafficsim.go b/probes/trafficsim.go index bb22449..e7102a4 100644 --- a/probes/trafficsim.go +++ b/probes/trafficsim.go @@ -293,6 +293,7 @@ func (ts *TrafficSim) reportClientStats() { stats := ts.calculateStats() ts.ClientStats.PacketTimes = make(map[int]PacketTime) ts.ClientStats.LastReportTime = time.Now() + ts.Sequence = 1 ts.ClientStats.mu.Unlock() ts.DataChan <- ProbeData{