mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-04 19:07:13 +02:00
drm gpu power
This commit is contained in:
parent
6144739770
commit
8d3e3e33a5
3 changed files with 56 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::gpu::gpu_power;
|
||||
use color_eyre::{Report, Result};
|
||||
use std::fmt::Write;
|
||||
use std::fs::{read_dir, read_to_string};
|
||||
|
|
@ -84,6 +85,7 @@ pub fn power_usage() -> Result<Option<PowerUsage>> {
|
|||
}
|
||||
}
|
||||
|
||||
usage.gpu_uj = gpu_power();
|
||||
if let Some(nvidia_power) = crate::gpu::nvidia::power() {
|
||||
usage.gpu_uj = nvidia_power;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue