summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-30 23:21:51 +0800
committerruki <[email protected]>2025-10-30 23:21:51 +0800
commit4221c4d0041cc5f53969f8179132217c7eddb9af (patch)
treede4c7eeb35f6758885928aebaa8d8132f5ea4f57 /xmake/modules/utils/progress.lua
parent39cf539b6cd73bd4ee8a0487f019ff9a761b3203 (diff)
remove unused maxwidth
Diffstat (limited to 'xmake/modules/utils/progress.lua')
-rw-r--r--xmake/modules/utils/progress.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua
index a8271db63..37beb9764 100644
--- a/xmake/modules/utils/progress.lua
+++ b/xmake/modules/utils/progress.lua
@@ -168,7 +168,7 @@ function _build_ordered_subprocess_lineinfos(maxwidth, current_time)
end
-- display subprocess progress lines (internal helper)
-function _display_subprocess_lines(order_lineinfos, maxwidth)
+function _display_subprocess_lines(order_lineinfos)
local linecount = 0
for _, lineinfo in ipairs(order_lineinfos) do
-- we need not show it if the progress job is idle in runjobs now
@@ -194,15 +194,14 @@ function _redraw_multirow_progress(maxwidth)
return
end
- local current_time = os.mclock()
-
-- redraw the total progress line
tty.erase_line().cr()
cprint(last_total_progress)
-- build and display the subprocess lines
+ local current_time = os.mclock()
local order_lineinfos = _build_ordered_subprocess_lineinfos(maxwidth, current_time)
- _display_subprocess_lines(order_lineinfos, maxwidth)
+ _display_subprocess_lines(order_lineinfos)
io.flush()
end
@@ -265,7 +264,7 @@ function _show_progress_with_multirow_refresh(progress, format, ...)
-- build and display the subprocess lines
local order_lineinfos = _build_ordered_subprocess_lineinfos(maxwidth, current_time)
current_lineinfo.start_time = current_time
- _display_subprocess_lines(order_lineinfos, maxwidth)
+ _display_subprocess_lines(order_lineinfos)
if is_finished then
_g.refresh_mode = nil