Skip to content

Commit ce084a7

Browse files
committed
update limit, for shutdown..
1 parent dfb37ed commit ce084a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fanctl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ sleep( 1 )
243243
-- Fullfill a table with all pre-calculated PWM values, so that we wouldn't need to do that for "all eternity"..
244244
-- Table Created using Linear Interpolated Method
245245
PWM_RATIO={}
246-
for i = 0,ABSOLUTE_MAX_THERMAL_TEMP,1
246+
for i = 0,( ABSOLUTE_MAX_THERMAL_TEMP + 100 ),1
247247
do
248248
if( i >= 0 and i < MIN_THERMAL_TEMP )
249249
then
@@ -282,7 +282,7 @@ do
282282
end
283283

284284
-- Temp Above threshold to Underclock Frequencies
285-
if( TEMP > ABSOLUTE_MAX_THERMAL_TEMP )
285+
if( TEMP >= ABSOLUTE_MAX_THERMAL_TEMP )
286286
then
287287
-- Temp is Critically Above 'ABSOLUTE_MAX_THERMAL_TEMP'
288288
os.execute( "sleep 10 && shutdown -h +0 \"Warning: Temperature **ABOVE** 'ABSOLUTE MAX THERMAL TEMP' ( " .. ABSOLUTE_MAX_THERMAL_TEMP .. "°C )\" &")

0 commit comments

Comments
 (0)