From aefa6cf194aede03cbf9db6198af23aa21557ea1 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 12 Oct 2022 23:47:25 +0000 Subject: [PATCH 1/3] Use `s` instead of `sec` for units of seconds --- src/cui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cui.cpp b/src/cui.cpp index 2daa6ab..987c3a8 100644 --- a/src/cui.cpp +++ b/src/cui.cpp @@ -68,7 +68,7 @@ const char *COLUMN_FORMAT_RECEIVED = "%11.3f"; // All descriptions are padded to 6 characters in length with spaces 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 = '/'; From 22c43c5523ac16101bdd016c8eab1a595e86d8b4 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 12 Oct 2022 23:37:50 +0000 Subject: [PATCH 2/3] Fix typo --- src/cui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cui.cpp b/src/cui.cpp index 987c3a8..f974efa 100644 --- a/src/cui.cpp +++ b/src/cui.cpp @@ -351,7 +351,7 @@ void show_ncurses(Line *lines[], int nproc) { double sent_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) { erase(); From 56c93483726e66812894f22f66c28d1fc5023d76 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 12 Oct 2022 23:38:43 +0000 Subject: [PATCH 3/3] Trim trailing whitespace --- src/cui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cui.cpp b/src/cui.cpp index f974efa..8ce50fd 100644 --- a/src/cui.cpp +++ b/src/cui.cpp @@ -160,8 +160,8 @@ static void mvaddstr_truncate_cmdline(int row, int col, const char *progname, if (showBasename) { if (index(progname, FILE_SEPARATOR) != NULL) { progname = rindex(progname, FILE_SEPARATOR) + 1; - } - } + } + } std::size_t proglen = strlen(progname); std::size_t max_cmdlen;