summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsb-gpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/sb-gpu b/sb-gpu
index 45dec9d..75a493a 100755
--- a/sb-gpu
+++ b/sb-gpu
@@ -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