From 16934d495979fbed9e6c69dba6e04d8da37849cf Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Wed, 16 Sep 2015 13:04:05 -0700 Subject: [PATCH] Fix wrong constants in db_test_util Summary: Fix two constants in WaitFor() that multiply a value with 000 instead of 1000. Test Plan: make clean all check Reviewers: rven, anthony, yhchiang, aekmekji, sdong, MarkCallaghan, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D47091 --- util/db_test_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/db_test_util.h b/util/db_test_util.h index dfb2b3e6d..3407e3907 100644 --- a/util/db_test_util.h +++ b/util/db_test_util.h @@ -83,8 +83,8 @@ class AtomicCounter { uint64_t start = env_->NowMicros(); while (count_ < count) { uint64_t now = env_->NowMicros(); - cond_count_.TimedWait(now + /*1s*/ 1 * 000 * 000); - if (env_->NowMicros() - start > /*10s*/ 10 * 000 * 000) { + cond_count_.TimedWait(now + /*1s*/ 1 * 1000 * 1000); + if (env_->NowMicros() - start > /*10s*/ 10 * 1000 * 1000) { return false; } if (count_ < count) { -- GitLab