throttle: fix assert count to actually use count

This commit is contained in:
Greg Farnum 2010-06-07 05:54:47 -07:00
parent 989c9ee149
commit 8413ed49ee

View File

@ -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;
}
};