Fix bad format string
This commit is contained in:
parent
80ff78b1b6
commit
dc790c5f7e
|
@ -39,7 +39,7 @@ public:
|
|||
: ts(ts), tokens(tokens)
|
||||
{
|
||||
if (tokens >= ts->maxTokens)
|
||||
throw NoTokens(format("requesting more tokens (%d) than exist (%d)") % tokens);
|
||||
throw NoTokens(format("requesting more tokens (%d) than exist (%d)") % tokens % ts->maxTokens);
|
||||
auto inUse(ts->inUse.lock());
|
||||
while (*inUse + tokens > ts->maxTokens)
|
||||
if (timeout) {
|
||||
|
|
Loading…
Reference in a new issue