summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-06-22 20:49:40 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-06-22 20:49:40 +0300
commit08fd73410e9a7ffb64acb15422fc6836230aa588 (patch)
treedfb3da06e76183573cb78909140f1b2d6502099a /indra
parent9db683c13e67575bd347cf8a795f1a4ee148c4ea (diff)
MAINT-8686 Don't log empty list
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/llcoros.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp
index 3165ce0743..67e9fad1ab 100644
--- a/indra/llcommon/llcoros.cpp
+++ b/indra/llcommon/llcoros.cpp
@@ -284,17 +284,20 @@ void LLCoros::setStackSize(S32 stacksize)
void LLCoros::printActiveCoroutines()
{
LL_INFOS("LLCoros") << "Number of active coroutines: " << (S32)mCoros.size() << LL_ENDL;
- LL_INFOS("LLCoros") << "-------------- List of active coroutines ------------";
- CoroMap::iterator iter;
- CoroMap::iterator end = mCoros.end();
- F64 time = LLTimer::getTotalSeconds();
- for (iter = mCoros.begin(); iter != end; iter++)
+ if (mCoros.size() > 0)
{
- F64 life_time = time - iter->second->mCreationTime;
- LL_CONT << LL_NEWLINE << "Name: " << iter->first << " life: " << life_time;
+ LL_INFOS("LLCoros") << "-------------- List of active coroutines ------------";
+ CoroMap::iterator iter;
+ CoroMap::iterator end = mCoros.end();
+ F64 time = LLTimer::getTotalSeconds();
+ for (iter = mCoros.begin(); iter != end; iter++)
+ {
+ F64 life_time = time - iter->second->mCreationTime;
+ LL_CONT << LL_NEWLINE << "Name: " << iter->first << " life: " << life_time;
+ }
+ LL_CONT << LL_ENDL;
+ LL_INFOS("LLCoros") << "-----------------------------------------------------" << LL_ENDL;
}
- LL_CONT << LL_ENDL;
- LL_INFOS("LLCoros") << "-----------------------------------------------------" << LL_ENDL;
}
#if LL_WINDOWS