Skip to content

Commit 81e975e

Browse files
committed
Fix progress’ percentage output
Seems like the progress function gives something like `0.7857142857142857% - <description>` instead of `78.57142857142857% - <description>` in the logs.
1 parent ef139c5 commit 81e975e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ooniprobe/internal/output/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Progress(key string, perc float64, eta float64, msg string) {
2424
log.WithFields(log.Fields{
2525
"type": "progress",
2626
"key": key,
27-
"percentage": perc,
27+
"percentage": 100.0 * perc,
2828
"eta": eta,
2929
}).Info(msg)
3030
}

0 commit comments

Comments
 (0)