Fix scx scheduler mode selection order
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 26s

This commit is contained in:
ferreo 2025-01-16 20:01:31 +00:00
parent d829af05f1
commit ea524fd764
4 changed files with 12 additions and 6 deletions

View File

@ -1 +1 @@
2
1

View File

@ -1,3 +1,9 @@
falcond (1.0.8-101pika2) pika; urgency=low
* Fix scx scheduler mode selection order
-- ferreo <ferreo@pika-os.com> Sun, 12 Jan 2025 13:48:00 +0300
falcond (1.0.7-101pika2) pika; urgency=low
* Don't load profiles in subfolders

View File

@ -102,8 +102,8 @@ const SCX_IFACE = "org.scx.Loader";
fn modeToInt(mode: ScxSchedModes) u32 {
return switch (mode) {
.default => 0,
.power => 1,
.gaming => 2,
.gaming => 1,
.power => 2,
.latency => 3,
.server => 4,
};
@ -112,8 +112,8 @@ fn modeToInt(mode: ScxSchedModes) u32 {
fn intToMode(value: u32) ScxError!ScxSchedModes {
return switch (value) {
0 => .default,
1 => .power,
2 => .gaming,
1 => .gaming,
2 => .power,
3 => .latency,
4 => .server,
else => error.InvalidValue,

View File

@ -2,7 +2,7 @@
set -e
VERSION="1.0.7"
VERSION="1.0.8"
source ./pika-build-config.sh