Skip to content

Commit

Permalink
Fix calculation of current_count_change when event status is updated (#…
Browse files Browse the repository at this point in the history
…504) (#507)

Signed-off-by: Yadunund <[email protected]>
(cherry picked from commit ab251ea)

Co-authored-by: yadunund <[email protected]>
  • Loading branch information
mergify[bot] and Yadunund authored Mar 6, 2025
1 parent c3b159f commit 9836e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void EventsManager::update_event_status(
status_to_update.total_count += std::max(0, current_count_change);
status_to_update.total_count_change += std::max(0, current_count_change);
status_to_update.current_count += current_count_change;
status_to_update.current_count_change = current_count_change;
status_to_update.current_count_change += current_count_change;
status_to_update.changed = true;
}

Expand Down

0 comments on commit 9836e36

Please sign in to comment.