Skip to content

Commit 9836e36

Browse files
Fix calculation of current_count_change when event status is updated (#504) (#507)
Signed-off-by: Yadunund <[email protected]> (cherry picked from commit ab251ea) Co-authored-by: yadunund <[email protected]>
1 parent c3b159f commit 9836e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_zenoh_cpp/src/detail/event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void EventsManager::update_event_status(
182182
status_to_update.total_count += std::max(0, current_count_change);
183183
status_to_update.total_count_change += std::max(0, current_count_change);
184184
status_to_update.current_count += current_count_change;
185-
status_to_update.current_count_change = current_count_change;
185+
status_to_update.current_count_change += current_count_change;
186186
status_to_update.changed = true;
187187
}
188188

0 commit comments

Comments
 (0)