Skip to content

Commit d11a33c

Browse files
Boris Dorofeevnodkz
Boris Dorofeev
authored andcommitted
fix: attempt to perform arithmetic on a boolean value - check nil - set 0 instead
1 parent c256cf3 commit d11a33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/zsetKeysMemoryUsage.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local bytesAmount = 0
1414

1515
if (#jobs > 0) then
1616
for _, jobId in ipairs(jobs) do
17-
bytesAmount = bytesAmount + redis.call('memory', 'usage', ARGV[1]..jobId)
17+
bytesAmount = bytesAmount + (redis.call('memory', 'usage', ARGV[1]..jobId) or 0)
1818
end
1919
end
2020

0 commit comments

Comments
 (0)