UI typo fixes from Gerben Roest <g.roest@grepit.nl>

This commit is contained in:
pdw
2009-11-21 19:30:50 +00:00
parent df5e85c7eb
commit d81065e845
2 changed files with 11 additions and 7 deletions

View File

@@ -4,10 +4,14 @@ $Id$
Attributions apply to all preceding items up to the next blank line. Attributions apply to all preceding items up to the next blank line.
Unattributed items are by Paul Warren and Chris Lightfoot. Unattributed items are by Paul Warren and Chris Lightfoot.
0.18
* Various typos in the UI
Gerben Roest <g.roest@grepit.nl>
0.17 12/02/06
* Display top scale in bytes when measuring in bytes * Display top scale in bytes when measuring in bytes
Marcin Kryczek <mkay@gentoo.org> Marcin Kryczek <mkay@gentoo.org>
0.17
* Added support for ppp interfaces on FreeBSD (and others using DLT_PPP) * Added support for ppp interfaces on FreeBSD (and others using DLT_PPP)
* Fixed segfault bug in config file handling. * Fixed segfault bug in config file handling.

12
ui.c
View File

@@ -38,7 +38,7 @@
" s - toggle show source host h - toggle this help display\n"\ " s - toggle show source host h - toggle this help display\n"\
" d - toggle show destination host b - toggle bar graph display\n"\ " d - toggle show destination host b - toggle bar graph display\n"\
" t - cycle line display mode B - cycle bar graph average\n"\ " t - cycle line display mode B - cycle bar graph average\n"\
" T - toggle cummulative line totals\n"\ " T - toggle cumulative line totals\n"\
"Port display: j/k - scroll display\n"\ "Port display: j/k - scroll display\n"\
" N - toggle service resolution f - edit filter code\n"\ " N - toggle service resolution f - edit filter code\n"\
" S - toggle show source port l - set screen filter\n"\ " S - toggle show source port l - set screen filter\n"\
@@ -58,8 +58,8 @@
int history_divs[HISTORY_DIVISIONS] = {1, 5, 20}; int history_divs[HISTORY_DIVISIONS] = {1, 5, 20};
#define UNIT_DIVISIONS 4 #define UNIT_DIVISIONS 4
char* unit_bits[UNIT_DIVISIONS] = { "b", "Kb", "Mb", "Gb"}; char* unit_bits[UNIT_DIVISIONS] = { "b", "kb", "Mb", "Gb"};
char* unit_bytes[UNIT_DIVISIONS] = { "B", "KB", "MB", "GB"}; char* unit_bytes[UNIT_DIVISIONS] = { "B", "kB", "MB", "GB"};
typedef struct host_pair_line_tag { typedef struct host_pair_line_tag {
addr_pair ap; addr_pair ap;
@@ -693,7 +693,7 @@ void ui_print() {
mvaddstr(y+2, 0, "TOTAL: "); mvaddstr(y+2, 0, "TOTAL: ");
/* Cummulative totals */ /* Cummulative totals */
mvaddstr(y, 16, "cumm: "); mvaddstr(y, 16, "cum: ");
readable_size(history_totals.total_sent, line, 10, 1024, 1); readable_size(history_totals.total_sent, line, 10, 1024, 1);
mvaddstr(y, 22, line); mvaddstr(y, 22, line);
@@ -1082,10 +1082,10 @@ void ui_loop() {
case 'T': case 'T':
options.show_totals = !options.show_totals; options.show_totals = !options.show_totals;
if(options.show_totals) { if(options.show_totals) {
showhelp("Show cummulative totals"); showhelp("Show cumulative totals");
} }
else { else {
showhelp("Hide cummulative totals"); showhelp("Hide cumulative totals");
} }
ui_print(); ui_print();
break; break;