Skip to content

Commit

Permalink
Healthcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 14, 2023
1 parent b577083 commit 6b365e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion healthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void healthy_check() {
std::chrono::steady_clock::time_point current_time =
std::chrono::steady_clock::now();
std::chrono::duration<double> elapsed_time = current_time - last_msg_time;
bool is_msg_valid = elapsed_time.count() < MSG_VALID_TIME.count();
bool is_msg_valid = elapsed_time < MSG_VALID_TIME;

if (is_msg_valid) {
write_health_status("healthy");
Expand Down

0 comments on commit 6b365e6

Please sign in to comment.