Skip to content

Commit

Permalink
Update ncurses_display.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
UAnjali authored Oct 24, 2021
1 parent 694f779 commit 9f0948e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ncurses_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void NCursesDisplay::DisplayProcesses(std::vector<Process>& processes,
mvwprintw(window, row, command_column, "COMMAND");
wattroff(window, COLOR_PAIR(2));
for (int i = 0; i < n; ++i) {
//You need to take care of the fact that the cpu utilization has already been multiplied by 100.
// Clear the line
mvwprintw(window, ++row, pid_column, (string(window->_maxx-2, ' ').c_str()));

Expand Down

0 comments on commit 9f0948e

Please sign in to comment.