cli: prettier table in garage stats

This commit is contained in:
Alex Auvolat
2022-12-13 15:43:22 +01:00
parent d7f90cabb0
commit d6040e32a6
7 changed files with 93 additions and 39 deletions
+5
View File
@@ -318,6 +318,11 @@ impl BlockManager {
Ok(self.rc.rc.len()?)
}
/// Get number of items in the refcount table
pub fn rc_fast_len(&self) -> Result<Option<usize>, Error> {
Ok(self.rc.rc.fast_len()?)
}
/// Send command to start/stop/manager scrub worker
pub async fn send_scrub_command(&self, cmd: ScrubWorkerCommand) {
let _ = self.tx_scrub_command.send(cmd).await;