Merge pull request #242 from a1346054/fixes

Use `s` instead of `sec` for units of seconds
This commit is contained in:
Arnout Engelen
2022-10-17 09:00:13 +02:00
committed by GitHub

View File

@@ -68,7 +68,7 @@ const char *COLUMN_FORMAT_RECEIVED = "%11.3f";
// All descriptions are padded to 6 characters in length with spaces // All descriptions are padded to 6 characters in length with spaces
const char *const desc_view_mode[VIEWMODE_COUNT] = { const char *const desc_view_mode[VIEWMODE_COUNT] = {
"KB/sec", "KB ", "B ", "MB ", "MB/sec", "GB/sec"}; "KB/s ", "KB ", "B ", "MB ", "MB/s ", "GB/s "};
constexpr char FILE_SEPARATOR = '/'; constexpr char FILE_SEPARATOR = '/';
@@ -351,7 +351,7 @@ void show_ncurses(Line *lines[], int nproc) {
double sent_global = 0; double sent_global = 0;
double recv_global = 0; double recv_global = 0;
getmaxyx(stdscr, rows, cols); /* find the boundaries of the screeen */ getmaxyx(stdscr, rows, cols); /* find the boundaries of the screen */
if (cols < 62) { if (cols < 62) {
erase(); erase();