diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-27 00:22:24 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-27 00:23:07 +0300 |
commit | d523c728ead6ca9f3796f35ca05612c53dcfb7a6 (patch) | |
tree | 1b1a07f9a514031dfb8352e783d1d6bf3b14664a | |
parent | 86f88714aecb691df960467a6ede69ed9bdaf8d9 (diff) |
Do not display unknown PIDs.
-rw-r--r-- | profiler/src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 59a647c7..0c8ef61e 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -765,7 +765,10 @@ static void DrawContents() } tracy::TextFocused( "IP:", v.second.address.c_str() ); tracy::TextFocused( "Port:", portstr ); - tracy::TextFocused( "PID:", tracy::RealToString( v.second.pid ) ); + if( v.second.pid != 0 ) + { + tracy::TextFocused( "PID:", tracy::RealToString( v.second.pid ) ); + } ImGui::EndTooltip(); } if( v.second.port != port ) |