Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d7f68d + d13109f commit 1a2e31fCopy full SHA for 1a2e31f
2 files changed
src/server/metrics.rs
@@ -98,6 +98,10 @@ impl Metrics {
98
self.crater_completed_jobs_total
99
.remove_label_values(&[experiment])?;
100
101
+ // Clear out all values from the progress report to avoid indefinitely retaining experiment
102
+ // metrics.
103
+ self.crater_progress_report.reset();
104
+
105
Ok(())
106
}
107
src/utils/disk_usage.rs
@@ -12,7 +12,7 @@ impl DiskUsage {
12
let stat = nix::sys::statvfs::statvfs(&path)?;
13
let available = stat.blocks_available();
14
let total = stat.blocks();
15
- info!("{available} / {total} blocks used in {path:?}");
+ info!("{available} / {total} blocks available in {path:?}");
16
17
Ok(Self {
18
usage: 1.0 - available as f32 / total as f32,
0 commit comments