Skip to content

Commit

Permalink
Pluralise prasing message correctly (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterebden authored Nov 8, 2024
1 parent 83e0243 commit 0e4a934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/interactive_display.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type plainDisplay struct {

func (d *plainDisplay) Update(targets []buildingTarget) {
localbusy, remotebusy := countActive(targets)
log.Notice("Build running for %s, %d / %d tasks done, %s busy, parsing %d BUILD files", time.Since(d.state.StartTime).Round(time.Second), d.state.NumDone(), d.state.NumActive(), pluralise(localbusy+remotebusy, "worker", "workers"), d.state.Parses().Load())
log.Notice("Build running for %s, %d / %d tasks done, %s busy, parsing %s", time.Since(d.state.StartTime).Round(time.Second), d.state.NumDone(), d.state.NumActive(), pluralise(localbusy+remotebusy, "worker", "workers"), pluralise(int(d.state.Parses().Load()), "BUILD file", "BUILD files"))
}

func countActive(targets []buildingTarget) (local int, remote int) {
Expand Down

0 comments on commit 0e4a934

Please sign in to comment.