Cosmetics.

This commit is contained in:
Bartosz Taudul 2020-06-24 01:14:55 +02:00
parent 493d433330
commit cf8620b956
2 changed files with 4 additions and 3 deletions

View File

@ -2692,8 +2692,9 @@ void Profiler::ReportTopology()
sprintf( path, "%s%i/topology/physical_package_id", basePath, i );
char buf[1024];
FILE* f = fopen( path, "rb" );
if( f == nullptr ) {
tracy_free(cpuData);
if( !f )
{
tracy_free( cpuData );
return;
}
auto read = fread( buf, 1, 1024, f );

View File

@ -179,7 +179,7 @@ int main( int argc, char** argv )
for( auto& v : messages ) v.timestamp -= mts;
for( auto& plot : plots )
{
for( auto& v : plot.data ) v.first -= mts;
for( auto& v : plot.data ) v.first -= mts;
}
printf( "\33[2KProcessing...\r" );