mikmc5's picture
Upload 2179 files
f1a6f30 verified
Raw History Blame Contribute Delete
254 Bytes
local weight = tonumber(ARGV[num_static_argv + 1])
local capacity = process_tick(now, false)['capacity']
local nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))
return conditions_check(capacity, weight) and nextRequest - now <= 0