Incorrect memory
Hello, I think I've encountered a bug. I would like to see the ram memory consumption of my pc, so I have this configuration here:
"memory": {
"interval": 5,
"format": "{used:0.2f} ",
"states": {
"warning": 70,
"critical": 90
},
"tooltip": false
},
the problem is that the value doesn't seem to be correct, for example I get 2.20 whereas top gives me 1.74 and the next command: free -h | awk '/Mem:/ {print $3}' returns 1.7Gi.
Do you know what causes this difference?
Anyone ?
is the issue still open?, can you point where this part of the code is and if i should work on the script itself or write a small c program to get the cpu usage?
no now it’s ok
Hello this is because of the difference between GB and GiB:
- 1 GiB = 1024^3 bytes
- 1 GB = 1000^3 bytes
Is it possible to change GiB to MiB instead?