Skip to content

Commit

Permalink
likwid-perfctr: check executable status before sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Sep 13, 2024
1 parent fd31b4e commit 3175f31
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/applications/likwid-perfctr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,18 @@ if use_wrapper or use_timeline then
end
break
end
local remain = likwid.sleep(math.floor(duration - (twork * 1E6)))
exitvalue, exited = likwid.checkProgram(pid)
if exited then
io.stdout:flush()
if #execList > 0 then
break
end
end
local sleeptime = duration - (twork * 1E6)
local remain = 0
if sleeptime > 0 then
remain = likwid.sleep(math.floor(duration - (twork * 1E6)))
end

exitvalue, exited = likwid.checkProgram(pid)
if exited then
Expand Down

0 comments on commit 3175f31

Please sign in to comment.