Skip to content

Commit

Permalink
back to reporting pending positions
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jan 1, 2024
1 parent 8fd07d6 commit e592ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl Logger {
P: Into<ProgressAt>,
{
let line = format!(
"{} {} cores, {} chunks, latest: {}",
"{} {} cores, {} queued, latest: {}",
queue,
queue.cores,
queue.pending,
Expand Down
2 changes: 1 addition & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl QueueState {

fn status_bar(&self) -> QueueStatusBar {
QueueStatusBar {
pending: self.incoming.len(),
pending: self.pending.values().map(|p| p.pending()).sum(),
cores: self.cores,
}
}
Expand Down

0 comments on commit e592ff4

Please sign in to comment.