summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-18 12:07:22 +0800
committerruki <[email protected]>2021-09-18 12:07:22 +0800
commite6142baeb6b089b3413755d4a3a9e4607cb829f1 (patch)
tree076c390cde8afba3ec7cce741ba6577776275fe5 /xmake/modules/private/utils/progress.lua
parenta6999bf6567e9ef6c01a37984a3f67cfa59de51d (diff)
improve 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 5c08cbf8f..635d1ef73 100644
--- a/xmake/modules/private/utils/progress.lua
+++ b/xmake/modules/private/utils/progress.lua
@@ -75,6 +75,7 @@ end
-- show the message with process
function show(progress, format, ...)
+ progress = math.floor(progress)
local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} "
if option.get("verbose") then
cprint(progress_prefix .. "${dim}" .. format, progress, ...)