Skip to content
Snippets Groups Projects
Commit 8a31393d authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #3128: Fixed thread index reporting

parent 767f80bf
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ThreadMap globalThreadMap; ...@@ -34,7 +34,7 @@ ThreadMap globalThreadMap;
void ThreadMap::report() { void ThreadMap::report() {
ScopedLock sl(mutex); ScopedLock sl(mutex);
unsigned nr = map.size() + 1; unsigned nr = map.size();
for(mapType::const_iterator i = map.begin(); i != map.end(); --nr, ++i) { for(mapType::const_iterator i = map.begin(); i != map.end(); --nr, ++i) {
const pthread_t &id = (*i).first; const pthread_t &id = (*i).first;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment