aboutsummaryrefslogtreecommitdiff
path: root/src/model/index_counter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/index_counter.rs')
-rw-r--r--src/model/index_counter.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs
index 9e29b421..474ec12c 100644
--- a/src/model/index_counter.rs
+++ b/src/model/index_counter.rs
@@ -408,7 +408,11 @@ impl<T: CountedItem> Worker for IndexPropagatorWorker<T> {
}
fn info(&self) -> Option<String> {
- Some(format!("{} items in queue", self.buf.len()))
+ if !self.buf.is_empty() {
+ Some(format!("{} items in queue", self.buf.len()))
+ } else {
+ None
+ }
}
async fn work(&mut self, must_exit: &mut watch::Receiver<bool>) -> Result<WorkerStatus, Error> {