arc stats

This commit is contained in:
Robin Appelman 2021-04-04 14:10:01 +02:00
commit 78893bdaed
3 changed files with 90 additions and 3 deletions

View file

@ -32,6 +32,7 @@ impl PowerUsage {
}
}
}
pub fn power_usage() -> Result<Option<PowerUsage>> {
if !CAN_READ.load(Ordering::Relaxed) {
return Ok(None);