[Iftop-users] iftop: scaling, 1024 base, patch

richard lucassen reply4 at lucassen.org
Mon, 14 Nov 2005 23:13:47 +0100


On Mon, 14 Nov 2005 17:23:49 +0200
Aidas Kasparas <a.kasparas@gmc.lt> wrote:

> 	iftop is fantastic tool! Thanks for it.
> 
> 	On the other hand, I found little strange when it's scale ends
> 	at 977kb
> with traffic in the ranges 256+ .. ~1000 kb and then jumps right to
> 9.54Mb. If someone has 1-1.5Mbit (and I'm one of such), then suddenly
> all the graphs become very small. I tried to add more steps and at the
> same time move to base 1024.
> 
> 	Attached patch solves these problems. Unfortunately, I had no
> 	setup to
> test correctness of this patch for speeds above 2Mbps.

What about the option e.g. "-m 1536k"?

R.

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+