From dc0319e63ea90ed6028ca8f9455350bf6ca85b66 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Sep 2021 13:59:09 +0800 Subject: fix 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 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, ...) -- cgit v1.3.1