From cf8620b956c5c60580766780b7e030c9fcb3560c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 24 Jun 2020 01:14:55 +0200 Subject: [PATCH] Cosmetics. --- client/TracyProfiler.cpp | 5 +++-- import-chrome/src/import-chrome.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index bb551870..4ea61fb3 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -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 ); diff --git a/import-chrome/src/import-chrome.cpp b/import-chrome/src/import-chrome.cpp index 9809cfd3..c5d21172 100644 --- a/import-chrome/src/import-chrome.cpp +++ b/import-chrome/src/import-chrome.cpp @@ -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" );