Skip to content

Commit

Permalink
fix fmt failing
Browse files Browse the repository at this point in the history
  • Loading branch information
provrb committed Jan 12, 2025
1 parent 71e630b commit eb04b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/windows/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,8 @@ fn check_sub(a: u64, b: u64) -> u64 {
pub(crate) fn compute_cpu_usage(p: &mut ProcessInner, nb_cpus: u64) {
// check if last time cpu values were calculated haven't update
// if so, check if cpu usage is 0, we should recalculate
if p.cpu_calc_values.last_update.elapsed() <= MINIMUM_CPU_UPDATE_INTERVAL && p.cpu_usage != 0.0 {
if p.cpu_calc_values.last_update.elapsed() <= MINIMUM_CPU_UPDATE_INTERVAL && p.cpu_usage != 0.0
{
// cpu usage hasn't updated. p.cpu_usage remains the same
return;
}
Expand Down

0 comments on commit eb04b88

Please sign in to comment.