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 9abff7ce9f..56ad1b736c 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 @@ -22,7 +22,7 @@ public class LinuxCmds extends CmdBase { public void initCmds(HardwareConfig config) { // CPU - cpuMemoryCommand = "free -m | awk 'FNR == 2 {print $3}'"; + cpuMemoryCommand = "free -m | awk 'FNR == 2 {print $2}'"; // TODO: boards have lots of thermal devices. Hard to pick the CPU diff --git a/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/PiCmds.java b/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/PiCmds.java index ba72dc5531..88ed23f22c 100644 --- a/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/PiCmds.java +++ b/photon-core/src/main/java/org/photonvision/common/hardware/metrics/cmds/PiCmds.java @@ -25,7 +25,6 @@ public void initCmds(HardwareConfig config) { super.initCmds(config); // CPU - cpuMemoryCommand = "free -m | awk 'FNR == 2 {print $2}'"; cpuTemperatureCommand = "sed 's/.\\{3\\}$/.&/' /sys/class/thermal/thermal_zone0/temp"; cpuThrottleReasonCmd = "if (( $(( $(vcgencmd get_throttled | grep -Eo 0x[0-9a-fA-F]*) & 0x01 )) != 0x00 )); then echo \"LOW VOLTAGE\"; "