mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 23:55:54 -05:00
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.
This commit is contained in:
parent
a6640d533c
commit
532992b03f
@ -159,7 +159,7 @@ function linux_memUtilization()
|
||||
case 'MemTotal:':
|
||||
ret.total = parseInt(tokens[tokens.length - 2]);
|
||||
break;
|
||||
case 'MemFree:':
|
||||
case 'MemAvailable:':
|
||||
ret.free = parseInt(tokens[tokens.length - 2]);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user