[Iftop-users] typo patch

Paul Warren pdw at ex-parrot.com
Sat, 21 Nov 2009 19:31:02 +0000


Gerben,

That's the kind of bug report I like to receive :-)

Now committed in CVS.

thanks,

Paul

On 21 Nov 2009, at 18:43, Gerben Roest wrote:

> Hi,
>
> cummulative should be cumulative, and kilobytes should be kB, not KB.
>
> greetings,
>
> Gerben
> *** ui.c	2005-10-26 22:12:33.000000000 +0200
> --- ../iftop-0.17-modified/ui.c	2009-11-21 17:57:32.000000000 +0100
> ***************
> *** 40,42 ****
>  " t - cycle line display mode            B - cycle bar graph average 
> \n"\
> ! "                                        T - toggle cummulative  
> line totals\n"\
>  "Port display:                           j/k - scroll display\n"\
> --- 40,42 ----
>  " t - cycle line display mode            B - cycle bar graph average 
> \n"\
> ! "                                        T - toggle cumulative  
> line totals\n"\
>  "Port display:                           j/k - scroll display\n"\
> ***************
> *** 60,63 ****
>  #define UNIT_DIVISIONS 4
> ! char* unit_bits[UNIT_DIVISIONS] =  { "b", "Kb", "Mb", "Gb"};
> ! char* unit_bytes[UNIT_DIVISIONS] =  { "B", "KB", "MB", "GB"};
>
> --- 60,63 ----
>  #define UNIT_DIVISIONS 4
> ! char* unit_bits[UNIT_DIVISIONS] =  { "b", "kb", "Mb", "Gb"};
> ! char* unit_bytes[UNIT_DIVISIONS] =  { "B", "kB", "MB", "GB"};
>
> ***************
> *** 695,697 ****
>      /* Cummulative totals */
> !     mvaddstr(y, 16, "cumm: ");
>
> --- 695,697 ----
>      /* Cummulative totals */
> !     mvaddstr(y, 16, "cum: ");
>
> ***************
> *** 1084,1089 ****
>                  if(options.show_totals) {
> !                     showhelp("Show cummulative totals");
>                  }
>                  else {
> !                     showhelp("Hide cummulative totals");
>                  }
> --- 1084,1089 ----
>                  if(options.show_totals) {
> !                     showhelp("Show cumulative totals");
>                  }
>                  else {
> !                     showhelp("Hide cumulative totals");
>                  }