Skip to content

Commit

Permalink
Update handleListenBrownoutStatus to send responses every second
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshan-Banneheke committed Jun 12, 2023
1 parent 08415a0 commit 837a8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/brownout.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func handleListenBrownoutStatus(w http.ResponseWriter, r *http.Request) {
log.Printf("Timestamp: %v, BrownoutActive: %v", brownoutStatus.Timestamp, brownoutStatus.BrownoutActive)

// Wait for some time before sending the next data
time.Sleep(30 * time.Second)
time.Sleep(1 * time.Second)
}
}

Expand Down

0 comments on commit 837a8a2

Please sign in to comment.