public void Save(IConfigService configService) { // CPU Usage settings configService.Set(ConfigSettings.AltCPULimitEnabled, EnableAltCPULevel.ToString()); configService.Set(ConfigSettings.CPULimit, CPULevel.ToString()); configService.Set(ConfigSettings.AltCPULimit, CPULevelAlt.ToString()); string cpuTimeRangeSettings = null; if (EnableAltCPULevel) { cpuTimeRangeSettings = $"{AltTimeStart.LocalTimeSpanToUTC()}-{AltTimeEnd.LocalTimeSpanToUTC()}"; } configService.Set(ConfigSettings.AltCPULimitTimes, cpuTimeRangeSettings); }
public TournamentMenu setCPULevel(CPULevel cpuLevel) { this.cpuLevel = cpuLevel; return(this); }