Skip to content

Commit

Permalink
i#6728 sched time stats: Relax assert for zero time
Browse files Browse the repository at this point in the history
Relaxes an assert added in PR #6784 to allow zero time to have elapsed
when updating the schedule_stats time buckets.

Issue: #6728
  • Loading branch information
derekbruening committed Apr 29, 2024
1 parent 427bcc0 commit dd28b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/drcachesim/tools/schedule_stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ bool
schedule_stats_t::update_state_time(per_shard_t *shard, state_t state)
{
uint64_t cur = get_current_microseconds();
assert(cur > shard->segment_start_microseconds);
assert(cur >= shard->segment_start_microseconds);
assert(shard->segment_start_microseconds > 0);
uint64_t delta = cur - shard->segment_start_microseconds;
switch (state) {
Expand Down

0 comments on commit dd28b2f

Please sign in to comment.