Skip to content

Commit

Permalink
lib.interlink: fix shm printing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Mar 15, 2023
1 parent 66f0eb3 commit f906776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/interlink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ local function describe (r)
[DOWN] = "deallocating"
})[r.state[0]]
end
return ("%d/%d (%s)"):format(queue_fill(r), size - 1, status(r))
return ("%d/%d (%s)"):format(queue_fill(r), r.size, status(r))
end

ffi.metatype("struct interlink", {__tostring=describe})

0 comments on commit f906776

Please sign in to comment.