diff --git a/src/common/Throttle.h b/src/common/Throttle.h index d6735dd864f..b1c82b55c87 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -62,7 +62,7 @@ public: } int64_t take(int64_t c = 1) { - assert(c > 0); + assert(c >= 0); Mutex::Locker l(lock); count += c; return count;