We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da166f commit d75d764Copy full SHA for d75d764
src/prometheus/util.lua
@@ -237,7 +237,7 @@ local function bytesToString(arr)
237
str = str .. string.char(table.unpack(arr, (i - 1) * MAX_UNPACK_COUNT + 1, i * MAX_UNPACK_COUNT));
238
end
239
240
- return str..string.char(table.unpack(arr, lenght - overflow + 1, lenght));
+ return str..(overflow > 0 and string.char(table.unpack(arr, lenght - overflow + 1, lenght)) or "");
241
242
243
local function isNaN(n)
0 commit comments