mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-26 07:58:14 +00:00
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1430
This commit is contained in:
@@ -224,7 +224,13 @@ impl BlockManager {
|
||||
|p, tranquility| p.set_with(|x| x.tranquility = tranquility),
|
||||
);
|
||||
vars.register_ro(&self.scrub_persister, "scrub-last-completed", |p| {
|
||||
p.get_with(|x| msec_to_rfc3339(x.time_last_complete_scrub))
|
||||
p.get_with(|x| {
|
||||
if x.time_last_complete_scrub == 0 {
|
||||
"never".to_string()
|
||||
} else {
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user