We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068ec68 commit b872b4fCopy full SHA for b872b4f
src/service-app/classes/CpuWorker.ts
@@ -235,10 +235,9 @@ export class CpuWorker extends DaemonWorker {
235
const maxFreq = core.scalingMaxFreq.readValue();
236
let maxFreqProfile = profile.cpu.scalingMaxFrequency;
237
if (maxFreqProfile === -1) {
238
- if (this.cpuCtrl.boost === undefined) {
+ if (!this.cpuCtrl.boost.isAvailable()) {
239
maxFreqProfile = core.getReducedAvailableFreq();
240
- }
241
- else {
+ } else {
242
maxFreqProfile = coreMaxFreq;
243
}
244
} else if (maxFreqProfile === undefined || maxFreqProfile > coreMaxFreq || profile.cpu.useMaxPerfGov) {
0 commit comments