summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-01 19:24:21 +0800
committerruki <[email protected]>2025-11-01 19:24:21 +0800
commit95a282fab0f1a922251426a167939aa2ac9bd5be (patch)
tree98f59274340f2264dcd49554920605fe3c42fe71 /xmake/modules/utils/progress.lua
parent4b0a1d6e4eb5ce15b86f75a3e8ca85041c445ad0 (diff)
fix progress time
Diffstat (limited to 'xmake/modules/utils/progress.lua')
-rw-r--r--xmake/modules/utils/progress.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua
index e3040e94d..eed316e68 100644
--- a/xmake/modules/utils/progress.lua
+++ b/xmake/modules/utils/progress.lua
@@ -270,19 +270,19 @@ function _show_progress_with_multirow_refresh(progress, format, ...)
-- update the current progress info
local current_lineinfo = progress_lineinfos[running]
if current_lineinfo == nil then
- current_lineinfo = {start_time = current_time, spent_time = 0, running = running}
+ current_lineinfo = {spent_time = 0, running = running}
progress_lineinfos[running] = current_lineinfo
end
if is_finished then
current_lineinfo.progress_msg = nil
else
current_lineinfo.progress_msg = progress_msg
+ current_lineinfo.start_time = current_time
end
-- build and display the subprocess lines
if not is_finished then
local order_lineinfos = _build_ordered_subprocess_lineinfos(maxwidth, current_time)
- current_lineinfo.start_time = current_time
_display_subprocess_lines(order_lineinfos)
_g.refresh_mode = "multirow"
else