diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2020-06-24 02:14:55 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2020-06-24 02:14:55 +0300 |
commit | cf8620b956c5c60580766780b7e030c9fcb3560c (patch) | |
tree | 7a68033c6f9b95540023af550e8a8abc60a0c033 | |
parent | 493d433330aad7a9cf045e945976b7a3037efc41 (diff) |
Cosmetics.
-rw-r--r-- | client/TracyProfiler.cpp | 5 | ||||
-rw-r--r-- | 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" ); |