aristocratos / btop

A monitor of resources
Apache License 2.0
20.08k stars 619 forks source link

[BUG] Setting network bandwidth past 10Gbit breaks the network graph #191

Closed acaos closed 2 years ago

acaos commented 2 years ago

Describe the bug

Setting network bandwidth (either manually or automatically) past 10 Gbit/s breaks the network graph (causing it to display 163P in the scale field, and the graph is always full).

To Reproduce

  1. Go to the menu.
  2. Go to the network tab.
  3. Disable automatic scaling and set either the upload or download bandwidth to 40000 or some other high number (the system I was using it on has 40Gbit interfaces).

Expected behavior

The network bandwidth graph works as expected on systems with interfaces >10Gbit.

Screenshots

image

Info (please complete the following information):

Additional context

No log present, no crash detected.

aristocratos commented 2 years ago

@acaos Missplaced some parentheses, should be fixed in latest commit.

You can try the binaries from the Continuous Build

acaos commented 2 years ago

I can confirm this solves the problem for me. Thank you!