aristocratos / btop

A monitor of resources
Apache License 2.0
21.37k stars 655 forks source link

[BUG] ramfs showing 'Used: -214' #791

Closed sertonix closed 5 months ago

sertonix commented 9 months ago

Describe the bug

A ramfs has a size and used bytes of 0. It then reports a usage percentage of 'Used: -214'. I assume that is an integer underflow.

To Reproduce

Mount a ramfs and open btop.

Expected behavior

btop should show 'Used: 0%'.

Info (please complete the following information):