Fix scx scheduler mode selection order
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 26s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 26s
This commit is contained in:
parent
d829af05f1
commit
ea524fd764
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
||||
2
|
||||
1
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user