Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/TracyProfiler.cpp5
-rw-r--r--import-chrome/src/import-chrome.cpp2
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" );