mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
fix nstime_update_mock in arena_decay unit test
This commit is contained in:
@@ -18,7 +18,7 @@ nstime_monotonic_mock(void) {
|
||||
static void
|
||||
nstime_update_mock(nstime_t *time) {
|
||||
nupdates_mock++;
|
||||
if (monotonic_mock) {
|
||||
if (monotonic_mock && nstime_compare(&time_mock, time) > 0) {
|
||||
nstime_copy(time, &time_mock);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user