Use watts as double to have more fine grained control

This commit is contained in:
IceStormNG
2024-03-01 18:55:50 +01:00
parent 2aebf3044d
commit 8cd256463a
4 changed files with 7 additions and 7 deletions

View File

@@ -379,7 +379,7 @@ namespace GHelper.AutoTDP
Logger.WriteLine("[AutoTDPService] Setting Power Limit from " + CurrentTDP + "W to " + newPL + "W, Delta:" + adjustment);
//We only limit to full watts, no fractions. In this case, we will cut off the fractional part
powerLimiter.SetCPUPowerLimit((int)newPL);
powerLimiter.SetCPUPowerLimit(newPL);
CurrentTDP = newPL;
}