set governor to "performance" if available (#2438)

* set governor to "performance" if available

* add linux-cpupower

* fix: Boolean blindness, thanks @dr-bones

---------

Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>
This commit is contained in:
Aiden McClelland
2023-10-04 14:52:56 -06:00
committed by GitHub
parent 20241c27ee
commit 6f588196cb
7 changed files with 208 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ pub enum ErrorKind {
OpenSsh = 66,
Zram = 67,
Lshw = 68,
CpuSettings = 69,
}
impl ErrorKind {
pub fn as_str(&self) -> &'static str {
@@ -151,6 +152,7 @@ impl ErrorKind {
OpenSsh => "OpenSSH Error",
Zram => "Zram Error",
Lshw => "LSHW Error",
CpuSettings => "CPU Settings Error",
}
}
}