Skip to content

Commit

Permalink
Add change timestamp to buddy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn Jorgensen committed Jul 29, 2024
1 parent 9822862 commit 9031219
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/dashgoat/buddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,12 @@ func tellServiceListAboutBuddy(buddy_name string, up bool) {
logger.Error("tellServiceListAboutBuddy", "error", err)
}

iSnewState(result)
change := iSnewState(result) // Informs about state change
if change {
result.Change = time_now
} else {
result.Change = ss.serviceStateList[host_service].Change
}

ss.serviceStateList[host_service] = result

Expand Down

0 comments on commit 9031219

Please sign in to comment.