MatthiasSchinzel / sysmon

Graphical system monitor for linux, including information about CPU, GPU, Memory, HDD/SDD and your network connections. Similar to windows task manager.
GNU General Public License v3.0
294 stars 25 forks source link

Division by zero error with no swap #1

Closed MGThePro closed 3 years ago

MGThePro commented 3 years ago

Since I have enough ram to not use swap, I currently don't have any swap, which leads to the following error message: Icon theme "gnome" not found. Traceback (most recent call last): File "sysmon.py", line 589, in <module> main() File "sysmon.py", line 583, in main main = MainWindow() File "sysmon.py", line 109, in __init__ self.plot_meminfo() File "sysmon.py", line 313, in plot_meminfo (swaptotal - swapfree) ZeroDivisionError: division by zero

MatthiasSchinzel commented 3 years ago

Thanks for submitting! I think I can push an update handling this case later today.

Sorry for the inconvenience, I will let you know when an update is available!

MatthiasSchinzel commented 3 years ago

Please try again. I unmounted my swap and now it works for me.

Swap entry will still shows up, I will remove this in a future update, as well as the red swap line.

MGThePro commented 3 years ago

works perfectly now :+1: