summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 2165071..31caf66 100644
--- a/ui.c
+++ b/ui.c
@@ -44,8 +44,8 @@
" S - toggle show source port l - set screen filter\n"\
" D - toggle show destination port L - lin/log scales\n"\
" p - toggle port display ! - shell command\n"\
-" q - quit\n"\
-"Sorting:\n"\
+" r - reset scale\n"\
+"Sorting: q - quit\n"\
" 1/2/3 - sort by 1st/2nd/3rd column\n"\
" < - sort by source name\n"\
" > - sort by dest name\n"\
@@ -784,6 +784,11 @@ void ui_loop() {
showhelp(options.log_scale ? "Logarithmic scale" : "Linear scale");
ui_print();
break;
+ case 'r':
+ rateidx = 0;
+ rateidx_init = 0;
+ ui_print();
+ break;
case KEY_CLEAR:
case 12: /* ^L */
wrefresh(curscr);