aboutsummaryrefslogtreecommitdiff
path: root/thermal/thermal_03.sh
diff options
context:
space:
mode:
Diffstat (limited to 'thermal/thermal_03.sh')
-rwxr-xr-xthermal/thermal_03.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/thermal/thermal_03.sh b/thermal/thermal_03.sh
index 3c5566e..4bb3982 100755
--- a/thermal/thermal_03.sh
+++ b/thermal/thermal_03.sh
@@ -48,10 +48,10 @@ check_temperature_change() {
check "start gpu heat binary" "test $gpu_pid -ne 0"
sleep 5
local final_temp=$(cat $dirpath/temp)
- if [ $cpu_pid -ne 0 ]; then
+ if [ $cpu_pid != 0 ]; then
kill -9 $cpu_pid
fi
- if [ $gpu_pid -ne 0 ]; then
+ if [ $gpu_pid != 0 ]; then
kill -9 $gpu_pid
fi
check "temperature variation with load" "test $final_temp -gt $init_temp"