diff options
author | Joshua Drake <joshua.ellis.drake@gmail.com> | 2023-11-08 19:36:22 -0600 |
---|---|---|
committer | Joshua Drake <joshua.ellis.drake@gmail.com> | 2023-11-08 19:36:22 -0600 |
commit | 646d7ff97d93bd03576be7f747c44ba78e199812 (patch) | |
tree | ab859ad57460c0aaff5f2ac093d99c22a3bc3e77 /sb-gpu | |
parent | 40991f3809cdb3c39c3806d7eb6489c1f30d64de (diff) |
Consolidated temp into one sed command to save .00001 clock cycles.
Diffstat (limited to 'sb-gpu')
-rwxr-xr-x | sb-gpu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ getGPUBusy() { echo "$GPUBusy" | cat /sys/class/drm/card1/device/gpu_busy_percent } getGPUTemperature() { - echo "$GPUTemp" | grep -o "[0-9]\{2\}" /sys/class/drm/card1/device/hwmon/hwmon1/temp1_input | head -1 + echo "$GPUTemp" | sed -n "s/000//;p" /sys/class/drm/card1/device/hwmon/hwmon1/temp1_input } case $BLOCK_BUTTON in |