SystemStat: fixing wrong memGb calculation. Fix #507

This commit is contained in:
ItsLemmy
2025-10-17 11:19:19 -04:00
parent fae2535d00
commit bda54677e1
+1 -1
View File
@@ -205,7 +205,7 @@ Singleton {
if (memTotal > 0) {
const usageKb = memTotal - memAvailable
root.memGb = (usageKb / 1000000).toFixed(1)
root.memGb = (usageKb / 1048576).toFixed(1) // 1024*1024 = 1048576
root.memPercent = Math.round((usageKb / memTotal) * 100)
}
}