Show '?' as PID when the PID could not be determined, instead of '0'.
https://answers.launchpad.net/ubuntu/+source/nethogs/+question/113880
This commit is contained in:
5
cui.cpp
5
cui.cpp
@@ -85,7 +85,10 @@ void Line::show (int row, unsigned int proglen)
|
||||
return;
|
||||
}
|
||||
|
||||
mvprintw (3+row, 0, "%d", m_pid);
|
||||
if (m_pid == 0)
|
||||
mvprintw (3+row, 0, "?");
|
||||
else
|
||||
mvprintw (3+row, 0, "%d", m_pid);
|
||||
char * username = uid2username(m_uid);
|
||||
mvprintw (3+row, 6, "%s", username);
|
||||
free (username);
|
||||
|
||||
Reference in New Issue
Block a user