summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-18 13:59:09 +0800
committerruki <[email protected]>2021-09-18 13:59:09 +0800
commitdc0319e63ea90ed6028ca8f9455350bf6ca85b66 (patch)
treebb9e09058f78f4ee81f3545bd4c439d6f118f887 /xmake/modules/private/utils/progress.lua
parentb70ab14251a74bd168963cbf17ae4ff7a64d7014 (diff)
fix progress
Diffstat (limited to 'xmake/modules/private/utils/progress.lua')
-rw-r--r--xmake/modules/private/utils/progress.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/private/utils/progress.lua b/xmake/modules/private/utils/progress.lua
index 635d1ef73..074046a69 100644
--- a/xmake/modules/private/utils/progress.lua
+++ b/xmake/modules/private/utils/progress.lua
@@ -114,6 +114,7 @@ end
-- get the message text with process
function text(progress, format, ...)
+ progress = math.floor(progress)
local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} "
if option.get("verbose") then
return string.format(progress_prefix .. "${dim}" .. format, progress, ...)