mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Annotate some core classes
This commit is contained in:
@@ -152,7 +152,7 @@ Json::Value JobQueue::getJson (int)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int JobQueue::isOverloaded ()
|
||||
bool JobQueue::isOverloaded ()
|
||||
{
|
||||
int count = 0;
|
||||
boost::mutex::scoped_lock sl (mJobLock);
|
||||
@@ -161,7 +161,7 @@ int JobQueue::isOverloaded ()
|
||||
if (mJobLoads[i].isOver ())
|
||||
++count;
|
||||
|
||||
return count;
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
void JobQueue::shutdown ()
|
||||
|
||||
Reference in New Issue
Block a user