BUGFIX: Values returned by linux_memUtilization() not useful. MemFree is the free physical memory. (#5596)
Since the Linux kernel uses free memory for caching, this value is usually very small. MemAvailble is an estimate of how much memory is available for starting new applications, without swapping. MemFree is the free physical memory. Using this value gives much more meaningful results.
wdlut committed
Dec 5, 2023 at 21:01 UTC
532992b03fd6f2930ab0bf6b1e5db4a92b842ecb
1 file changed
+1
-1
agents/modules_meshcore/sysinfo.js
+1
-1
@@ -159,7 +159,7 @@ function linux_memUtilization()
159
case 'MemTotal:':
160
ret.total = parseInt(tokens[tokens.length - 2]);
161
break;
162
- case 'MemFree:':
162
+ case 'MemAvailable:':
163
ret.free = parseInt(tokens[tokens.length - 2]);
164
break;
165
}