Skip to content

Commit

Permalink
webui: Fix parcel build error
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Sep 16, 2024
1 parent 6183b6d commit 6431863
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/webui/src/webui_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ async function populateCPUGovernors() {
selectElement1.appendChild(option);
});

let { errno, stdout } = await exec('encore-utils get_default_cpugov');
if (errno === 0) {
const defaultGovernor = stdout.trim();
const { errno: defaultErrno, stdout: defaultStdout } = await exec('encore-utils get_default_cpugov');
if (defaultErrno === 0) {
const defaultGovernor = defaultStdout.trim();
selectElement1.value = defaultGovernor;
}

let { errno, stdout } = await exec('encore-utils get_perf_cpugov');
if (errno === 0) {
const defaultPerfGovernor = stdout.trim();
const { errno: perfErrno, stdout: perfStdout } = await exec('encore-utils get_perf_cpugov');
if (perfErrno === 0) {
const defaultPerfGovernor = perfStdout.trim();
selectElement2.value = defaultPerfGovernor;
}
}
Expand Down

0 comments on commit 6431863

Please sign in to comment.