Skip to content

Commit

Permalink
added sequence reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sagostin committed Jul 12, 2024
1 parent cf28b9a commit c8ed4d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
1 change: 1 addition & 0 deletions probes/trafficsim.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit c8ed4d4

Please sign in to comment.