Skip to content
Snippets Groups Projects
Verified Commit d26300ea authored by zycromerz's avatar zycromerz
Browse files

fix module mode sometimes not working properly


Signed-off-by: default avatarZyCromerZ <neetroid97@gmail.com>
parent d09b3806
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,6 @@
else
## auto
[[ "$ModuleMode" != "Auto" ]] && WriteOnly "Auto" $PMConfig/modules_mode.conf
[[ "$GameDetected" == "y" ]] && GoTurbo="$MaxCheckGpuUsage" && GoNormal="0"
if [[ "$GpuStatus" -ge "$MaxGpuUsage" ]] && [[ "$GheymingMode" == "n" ]] && [[ "$GoTurbo" -le "$MaxCheckGpuUsage" ]];then
GoTurbo=$(($GoTurbo+1))
......@@ -118,6 +117,9 @@
GoNormal=$(($GoNormal+1))
[[ "$GoTurbo" -ge "0" ]] && GoTurbo=$(($GoTurbo-1))
fi
[[ "$GameDetected" == "y" ]] && GoTurbo="$MaxCheckGpuUsage" && GoNormal="0"
[[ "$StopSpamSendInfo" == "y" ]] && StopSpamSendInfo="n"
fi
......@@ -157,10 +159,10 @@
fi
fi
if [[ "$GoTurbo" -ge "$MaxCheckGpuUsage" ]];then
if [[ "$GoTurbo" -ge "$MaxCheckGpuUsage" ]] || [[ "$GoTurbo" -le "0" ]];then
GoTurbo="0"
fi
if [[ "$GoNormal" -ge "$MaxCheckGpuUsage" ]];then
if [[ "$GoNormal" -ge "$MaxCheckGpuUsage" ]] || [[ "$GoNormal" -le "0" ]];then
GoNormal="0"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment