From 0e4a934737c376dddd62ee39c8cf90c2a5e2af65 Mon Sep 17 00:00:00 2001 From: Peter Ebden Date: Fri, 8 Nov 2024 15:37:46 +0000 Subject: [PATCH] Pluralise prasing message correctly (#3291) --- src/output/interactive_display.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/interactive_display.go b/src/output/interactive_display.go index 503fcdd23..fa87be09d 100644 --- a/src/output/interactive_display.go +++ b/src/output/interactive_display.go @@ -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) {