From 8413ed49ee721a7a4073690121922a9ea5df651e Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 7 Jun 2010 05:54:47 -0700 Subject: [PATCH] throttle: fix assert count to actually use count --- src/common/Throttle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Throttle.h b/src/common/Throttle.h index 28320f2dec8..440ef623997 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -76,7 +76,7 @@ public: Mutex::Locker l(lock); cond.SignalOne(); count -= c; - assert(c>=0); //if count goes negative, we failed somewhere! + assert(count >= 0); //if count goes negative, we failed somewhere! return count; } };