orblazer / plasma-applet-resources-monitor

Plasmoid for monitoring CPU, memory, network traffic, GPUs and disks IO.
https://www.pling.com/p/2143899/
GNU General Public License v3.0
57 stars 6 forks source link

[BUG] Memory graph in bytes is always at the bottom #26

Closed TiGR closed 2 years ago

TiGR commented 2 years ago

When you deselect option to show memory in percentage, the memory usage is at zero:

image

And now, enabling showing memory in percentage, at the same moment:

image

Steps to reproduce the behavior:

  1. Go to widget settings
  2. Uncheck "Memory in percentage"
  3. See the error

The graph should be the same, only the number displayed should be different.

orblazer commented 2 years ago

Hello, I cant reproduce that issue.

Could you debug some value ?

Step for debug :

  1. Clone this repo
  2. Add print(ramGraph.maxMemory) after this line https://github.com/orblazer/plasma-applet-resources-monitor/blob/4cc431f94620058e87f5323ee719090964a276f4/package/contents/ui/main.qml#L195
  3. Run the dev env by run npm run dev or ./scripts/dev.sh

Thanks

TiGR commented 2 years ago

Just in case, I have no swap, and the settings look like this:

image

I'll test it later, as you describe.

orblazer commented 2 years ago

Oh ok, you don't neep to reproduce without swap i have the issue.