Skip to content

Commit

Permalink
Change cant be 0 before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn Jorgensen committed May 16, 2024
1 parent 85ab511 commit d899bf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/dashgoat/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ func filterUpdate(ss ServiceState) (ServiceState, error) {
ss.Probe = this_is_now
}

if ss.Change == 0 {
ss.Change = this_is_now
}

msglength := len(ss.Message)
if msglength > 254 {
ss.Message = string(ss.Message[0:254])
Expand Down

0 comments on commit d899bf1

Please sign in to comment.