Replaced all-smi with own implementation

This commit is contained in:
jmb05
2026-11-02 16:20:51 +01:00
parent 00b2b1f64c
commit de1f731e63
7 changed files with 245 additions and 3627 deletions

View File

@@ -481,8 +481,8 @@ pub fn build(
}
}
if let Some(gpu) = stats.gpus.into_iter().next() {
gpu_label.set_label(&format!("{}%", gpu.1));
if let Some(gpu) = stats.gpu {
gpu_label.set_label(&format!("{}%", gpu));
}
set_battery_css_classes(&battery_widget, stats.battery_state, stats.battery_charge);