1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Cosmetics.

This commit is contained in:
Bartosz Taudul 2021-05-15 13:03:42 +02:00
parent 6b2de1c8b5
commit 8ea02a4794
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -432,11 +432,11 @@ Worker::Worker( const char* name, const char* program, const std::vector<ImportE
for( auto& t : m_threadMap ) for( auto& t : m_threadMap )
{ {
auto name = threadNames.find(t.first); auto name = threadNames.find(t.first);
if (name != threadNames.end()) if( name != threadNames.end() )
{ {
char buf[128]; char buf[128];
int len = snprintf(buf, sizeof(buf), "(%" PRIu64 ") %s", t.first, name->second.c_str()); int len = snprintf( buf, sizeof( buf ), "(%" PRIu64 ") %s", t.first, name->second.c_str() );
AddThreadString(t.first, buf, len); AddThreadString( t.first, buf, len );
} }
else else
{ {