Skip to content

Commit b4a7624

Browse files
committed
Formatting
1 parent 2ad5f24 commit b4a7624

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

crates/datadog-metrics-collector/src/cpu.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ impl CpuMetricsCollector {
120120
}
121121
}
122122
} else {
123-
debug!("Skipping CPU metrics collection - could not find data to generate CPU usage and limit enhanced metrics");
123+
debug!(
124+
"Skipping CPU metrics collection - could not find data to generate CPU usage and limit enhanced metrics"
125+
);
124126
}
125127
}
126128
}

crates/datadog-metrics-collector/src/linux.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ fn compute_cgroup_cpu_limit_nc(cgroup_stats: &CgroupStats) -> Option<f64> {
171171
}
172172
Some(current_limit_nc) if quota_limit_nc < current_limit_nc => {
173173
limit_nc = Some(quota_limit_nc);
174-
debug!("CPU limit from cfs quota is less than current limit, setting CPU limit from cfs quota: {} nanocores", quota_limit_nc);
174+
debug!(
175+
"CPU limit from cfs quota is less than current limit, setting CPU limit from cfs quota: {} nanocores",
176+
quota_limit_nc
177+
);
175178
}
176179
_ => {
177180
debug!("Keeping cpuset limit: {:?} nanocores", limit_nc);

0 commit comments

Comments
 (0)