diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-08-16 17:53:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 20:53:34 -0400 |
commit | 59ce90f5779f63b8d21af92279189c2691a7b7d1 (patch) | |
tree | 0db8fe2d54e02b854b00fddb7f3e6256e8151ef9 /src/canvas | |
parent | 08e49b63c162f16cb35262cd48da324c779c1a1c (diff) |
bug: Fix bug w/ parsing `/proc/{pid}/stats`
Fixes a bug caused by incorrectly reading the `/proc/{pid}/stats` file. Due to splitting by whitespace, the string parsing was read incorrectly if the process also contained spaces.
Diffstat (limited to 'src/canvas')
-rw-r--r-- | src/canvas/widgets/process_table.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/canvas/widgets/process_table.rs b/src/canvas/widgets/process_table.rs index dea0d642..002de497 100644 --- a/src/canvas/widgets/process_table.rs +++ b/src/canvas/widgets/process_table.rs @@ -432,6 +432,7 @@ impl ProcessTableWidget for Painter { ), ]; + search_text.push(Text::raw("\n")); search_text.push(Text::styled( if let Some(err) = &proc_widget_state .process_search_state |