Skip to content

Commit

Permalink
Update lading/src/observer/linux/cgroup/v2.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Opell <[email protected]>
  • Loading branch information
blt and scottopell committed Feb 13, 2025
1 parent 82f99b9 commit 8e63a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lading/src/observer/linux/cgroup/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub(crate) async fn poll(file_path: &Path, labels: &[(String, String)]) -> Resul

#[inline]
pub(crate) fn single_value(content: &str, metric_prefix: String, labels: &[(String, String)]) {
// Content is a single-vaue file with an integer value.
// Content is a single-value file with an integer value.
if content == "max" {
gauge!(metric_prefix, labels).set(f64::MAX);
} else if let Ok(value) = content.parse::<f64>() {
Expand Down

0 comments on commit 8e63a80

Please sign in to comment.