From e6142baeb6b089b3413755d4a3a9e4607cb829f1 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Sep 2021 12:07:22 +0800 Subject: improve progress --- xmake/modules/private/utils/progress.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/private/utils/progress.lua') 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, ...) -- cgit v1.3.1