rolandriegel / nload

Real-time network traffic monitor
GNU General Public License v2.0
305 stars 35 forks source link

Auto-scale? #19

Closed perguth closed 3 months ago

perguth commented 3 months ago

I would like nload to utilize the full height of the scale without setting hard values for -u.

But -u H just produces either a flat graph like so:

image

Or on higher throughput a block like that:

image

Is there way to make it react to current throughput?


Running with fixed unit and interval here: https://ygg.thingylabs.io/

ahippo commented 3 months ago

I would like nload to utilize the full height of the scale without setting hard values for -u.

nload supports automatic scaling with -i 0 -o 0 options.

But -u H just produces either a flat graph like so:

-u H is for automatic selection of units for bandwidth, not for scaling the graph itself. (although H is for bytes per second, which is an unusual unit for bandwidth)

Hope this helps.

perguth commented 3 months ago

Thank you for the response! It does not work for me:

I do end up with about the same graph for nload (on the left) and nload -i 0 -o 0 (on the right):

Screenshot 2024-04-17 10 52 18 (nload 0.7.4)

ahippo commented 3 months ago

Thank you for the response! It does not work for me:

I do end up with about the same graph for nload (on the left) and nload -i 0 -o 0 (on the right): ... (nload 0.7.4)

Ah, the version 0.7.4 is probably the reason. Automatic scaling is only implemented on master branch in 4994d77b8644c697f3264a5d60e3e6149c4e0763 and is not present in 0.7.4.

perguth commented 3 months ago

Oh, I see! That works, thanks!


Sadly it has a rending problem when running in Gotty, https://github.com/yudai/gotty

Screen recording 2024-04-18 09.27.43.webm

Running in a regular terminal seems fine though.