summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flowtop.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/flowtop.c b/flowtop.c
index 425ad8e..df190a4 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1179,6 +1179,12 @@ static void draw_help(WINDOW *screen)
mvaddnstr(row + 5, col + 3, "Down, d, j Move down", -1);
mvaddnstr(row + 6, col + 3, "? Toggle help window", -1);
mvaddnstr(row + 7, col + 3, "q, Ctrl+C Quit", -1);
+
+ attron(A_BOLD | A_UNDERLINE);
+ mvaddnstr(row + 9, col + 2, "Display Settings", -1);
+ attroff(A_BOLD | A_UNDERLINE);
+
+ mvaddnstr(row + 11, col + 3, "b Toggle rate units (bits/bytes)", -1);
}
static void draw_footer(WINDOW *screen)
@@ -1238,6 +1244,12 @@ static void presenter(void)
if (skip_lines > SCROLL_MAX)
skip_lines = SCROLL_MAX;
break;
+ case 'b':
+ if (rate_type == RATE_BYTES)
+ rate_type = RATE_BITS;
+ else
+ rate_type = RATE_BYTES;
+ break;
case '?':
if (show_help)
show_help = false;
ce I become a co-maintainer of Platform Drivers x86 subsystem. It's a bit bigger than usual due to material collected for almost two weeks in a row. MAINTAINERS: - Add myself to X86 PLATFORM DRIVERS as a co-maintainer ideapad-laptop: - handle ACPI event 1 intel_mid_powerbtn: - Set IRQ_ONESHOT surface3-wmi: - fix uninitialized symbol - Shut up unused-function warning mlx-platform: - free first dev on error" * tag 'platform-drivers-x86-v4.10-4' of git://git.infradead.org/linux-platform-drivers-x86: MAINTAINERS: Add myself to X86 PLATFORM DRIVERS as a co-maintainer platform/x86: ideapad-laptop: handle ACPI event 1 platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT platform/x86: surface3-wmi: fix uninitialized symbol platform/x86: surface3-wmi: Shut up unused-function warning platform/x86: mlx-platform: free first dev on error
Diffstat (limited to 'include/net/atmclip.h')