Reset iftop scale

Is there a way to reset the scale shown at the top of iftop, or have autoscaling based on the max transfer rate seen?

bcf8b5e61e4366b88cbdd30dfd108184fa9eb144.png

For some reason, iftop has the linear scale going to some crazy numbers (9.31Gbps, I wish!) which make any normal traffic invisible on the scale. Changing to a logarithmic scale sets the max to a more reasonable 1Gbps and then the traffic can be visualized by the bars.

The version information is a bit confusing. iftop -h shows:

iftop, version 1.0pre4

But dnf info iftop says:

Version : 1.0
Release : 0.21.pre4.fc30

Meanwhile the official site says

The latest stable version of iftop is 0.17.

I know this is old, but I had the same question, and I found the answer elsewhere. I figured it would be good to share with others.

  1. Create a config file ~/.iftoprc
  2. put this line in the file: max-bandwidth: 2G

The documentation for the config file is in man, IFTOP(8).

2 Likes