diff --git a/src/native/eventpipe/ep-block.c b/src/native/eventpipe/ep-block.c index 8a854c22aca43..267ce30cbbd3c 100644 --- a/src/native/eventpipe/ep-block.c +++ b/src/native/eventpipe/ep-block.c @@ -690,7 +690,7 @@ ep_event_block_base_write_event ( instance_timestamp = ep_event_instance_get_timestamp (event_instance); if (event_block_base->min_timestamp > instance_timestamp) event_block_base->min_timestamp = instance_timestamp; - if (event_block_base->max_timestamp > instance_timestamp) + if (event_block_base->max_timestamp < instance_timestamp) event_block_base->max_timestamp = instance_timestamp; block->write_pointer = write_pointer;