From d523c728ead6ca9f3796f35ca05612c53dcfb7a6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 26 Oct 2022 23:22:24 +0200 Subject: Do not display unknown PIDs. --- profiler/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) -- cgit v1.2.3