aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-03-06 12:31:03 +0000
committerJonathan Davies <jpds@protonmail.com>2023-03-06 13:43:09 +0000
commit148b66b843be7f79f15b0a3805f38a0c3e944214 (patch)
tree142556fd44ff1fb33a1d42631224d7d2911c5b67
parent53d09eb00f29fe5c7a8a14fa22ce6cfc64bb0b14 (diff)
downloadgarage-148b66b843be7f79f15b0a3805f38a0c3e944214.tar.gz
garage-148b66b843be7f79f15b0a3805f38a0c3e944214.zip
block/manager.rs: Display scrub-next-run.
-rw-r--r--src/block/manager.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs
index 051a9f93..bfa66069 100644
--- a/src/block/manager.rs
+++ b/src/block/manager.rs
@@ -185,6 +185,9 @@ impl BlockManager {
vars.register_ro(&self.scrub_persister, "scrub-last-completed", |p| {
p.get_with(|x| msec_to_rfc3339(x.time_last_complete_scrub))
});
+ vars.register_ro(&self.scrub_persister, "scrub-next-run", |p| {
+ p.get_with(|x| msec_to_rfc3339(x.time_next_run_scrub))
+ });
vars.register_ro(&self.scrub_persister, "scrub-corruptions_detected", |p| {
p.get_with(|x| x.corruptions_detected)
});