Skip to content

Commit

Permalink
Use MemAvailable rather than MemFree
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 21, 2023
1 parent 7f28364 commit f770d79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void initCmds(HardwareConfig config) {
cpuUptimeCommand = "uptime -p | cut -c 4-";

// RAM
ramUsageCommand = "awk '/MemFree:/ {print int($2 / 1000);}' /proc/meminfo";
ramUsageCommand = "awk '/MemAvailable:/ {print int($2 / 1000);}' /proc/meminfo";

// Disk
diskUsageCommand = "df ./ --output=pcent | tail -n +2";
Expand Down

0 comments on commit f770d79

Please sign in to comment.