From f770d791dd9021f738d4d66639e3f65b0df90568 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Thu, 21 Sep 2023 16:07:01 -0400 Subject: [PATCH] Use MemAvailable rather than MemFree --- .../photonvision/common/hardware/metrics/cmds/LinuxCmds.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/LinuxCmds.java b/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/LinuxCmds.java index d151b22780..1a7d18f35e 100644 --- a/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/LinuxCmds.java +++ b/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/LinuxCmds.java @@ -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";