mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-21 18:32:13 +03:00
fix nstime_update_mock in arena_decay unit test
This commit is contained in:
parent
7c99686165
commit
baa5a90cc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue