From 3408094f3af924b039f5ef91359bc96a02e311a8 Mon Sep 17 00:00:00 2001 From: MaximAL Date: Fri, 9 Aug 2024 13:17:25 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20progress=E2=80=99=20percentage=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems like the progress function gives something like `0.7857142857142857% - ` instead of `78.57142857142857% - ` in the logs. --- cmd/ooniprobe/internal/output/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ooniprobe/internal/output/output.go b/cmd/ooniprobe/internal/output/output.go index 39b1588492..dcdcf73947 100644 --- a/cmd/ooniprobe/internal/output/output.go +++ b/cmd/ooniprobe/internal/output/output.go @@ -24,7 +24,7 @@ func Progress(key string, perc float64, eta float64, msg string) { log.WithFields(log.Fields{ "type": "progress", "key": key, - "percentage": perc, + "percentage": 100.0 * perc, "eta": eta, }).Info(msg) }