mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
fix nvidia power usage
This commit is contained in:
parent
2dff136ee6
commit
6144739770
1 changed files with 4 additions and 1 deletions
|
|
@ -16,7 +16,10 @@ pub fn temperature() -> Option<f32> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn power() -> Option<u64> {
|
pub fn power() -> Option<u64> {
|
||||||
device()?.total_energy_consumption().ok()
|
device()?
|
||||||
|
.total_energy_consumption()
|
||||||
|
.ok()
|
||||||
|
.map(|mj| mj * 1_000)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn memory() -> Option<Memory> {
|
pub fn memory() -> Option<Memory> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue