temp-throttle icon indicating copy to clipboard operation
temp-throttle copied to clipboard

Some weird messages

Open darrepac opened this issue 3 years ago • 5 comments
trafficstars

Hi

This script is very nicely working avoid to have a server reaching dangerous temp. Just wanted to inform you that even if it is working, I got the following some times:

line 148: [: -gt: unary operator expected
line 150: [: -le: unary operator expected

darrepac avatar Jul 05 '22 17:07 darrepac

Sometimes?

That's a very curious error to get only sometimes. Perhaps you can elaborate on "sometimes". Does it occur most when first starting the script? Is it possible you have modified the code in anyway?

Sepero avatar Jul 09 '22 06:07 Sepero

I agree! I said « sometimes » because I saw it in the console 1 time (near the launch of the script)

darrepac avatar Jul 09 '22 06:07 darrepac

With an error like that, I suspect your CPU is being fully throttled at boot, and remaining that way, regardless of temperature. This shouldn't happen with bash as I understand. What version of bash do you have on your system?

Sepero avatar Jul 09 '22 06:07 Sepero

GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)

darrepac avatar Jul 09 '22 06:07 darrepac

Thank you for the report. I'll have to look into it further

Sepero avatar Jul 11 '22 17:07 Sepero