🩹 Display decimal progress percentage (#399)

This commit is contained in:
Matthew Toohey 2021-06-27 14:06:30 -04:00 committed by GitHub
parent 93d3cbf303
commit 26fe7f1e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ struct ProgressState {
let phase: String
var percentage: String {
String(format: "%.1f%%", arguments: [floor(percentComplete * 100)])
String(format: "%.1f%%", floor(percentComplete * 1000) / 10)
}
}