summaryrefslogtreecommitdiffstats
path: root/src/remake/local.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 20:48:08 +0100
committertv <tv@krebsco.de>2026-10-26 20:48:08 +0100
commit8414f96f27b059c4536ae67ddfce18dec54e7451 (patch)
tree49d0aadd01b12f03242817c662c938b75e2efbb3 /src/remake/local.rs
parent53baaff5d7c1c9fd62cf0e94bcb86120edd699b6 (diff)
add remake stats
Diffstat (limited to 'src/remake/local.rs')
-rw-r--r--src/remake/local.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/remake/local.rs b/src/remake/local.rs
index fd7c567..60f7184 100644
--- a/src/remake/local.rs
+++ b/src/remake/local.rs
@@ -379,6 +379,11 @@ impl RemakeState {
self.lock().quarantine.push(quarantined);
}
+ /// How many old epochs are archived.
+ pub(crate) fn archived_count(&self) -> usize {
+ self.lock().archive.len()
+ }
+
pub(crate) fn archived_epochs(&self) -> Vec<ArchivedEpoch> {
self.lock()
.archive