Closed flozz closed 1 year ago
Hello,
I do not have any swap (32 GB of RAM is sufficient for me), and TopHat displays a swap usage of NaN%:
NaN%
This PR contains a simple fix to avoid this behavior.
A better solution would be to hide swap statistics if there is no swap (I can try to implement it if you think it is a better solution).
Thanks, good catch! I agree that the better solution is to hide that section entirely when no swap partition is available, but this is an improvement over the current behavior.
Hello,
I do not have any swap (32 GB of RAM is sufficient for me), and TopHat displays a swap usage of
NaN%
:This PR contains a simple fix to avoid this behavior.
A better solution would be to hide swap statistics if there is no swap (I can try to implement it if you think it is a better solution).