enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

mem: print zero used_mem instead of negative used_mem #722

Closed lasers closed 5 years ago

lasers commented 5 years ago

The problem is not caused by mem module. It comes from psutil or the data.

Please make a decision. 1) Print negative value as-is. Users have to accept this issue. 2) Print 0.0 instead. Users won't see this issue. (Current)

I remove if statement for psutil old version too.

Closes https://github.com/enkore/i3pystatus/issues/580.

chestm007 commented 5 years ago

I agree this issue comes upstream. I think this is the right decision, i was deciding between doing this or just not updating the module when a wrong negative value was calculated.