Skip to content

Commit

Permalink
Fix refresh kind methods
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Feb 3, 2025
1 parent 47b5c91 commit 6c96591
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/burn-train/src/metric/cpu_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ impl CpuUse {
}

fn refresh(sys: &mut System) -> f64 {
sys.refresh_specifics(RefreshKind::new().with_cpu(CpuRefreshKind::new().with_cpu_usage()));
sys.refresh_specifics(
RefreshKind::nothing().with_cpu(CpuRefreshKind::nothing().with_cpu_usage()),
);

let cpus = sys.cpus();
let num_cpus = cpus.len();
Expand Down

0 comments on commit 6c96591

Please sign in to comment.