Software / code / prosody
Comparison
util/throttle.lua @ 8272:64165865b131
util.throttle: Remove unused import of floor() [luacheck]
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 26 Sep 2017 18:30:34 +0100 |
| parent | 8254:e3f7b6fa46ba |
| child | 8555:4f0f5b49bb03 |
comparison
equal
deleted
inserted
replaced
| 8269:25237002aba4 | 8272:64165865b131 |
|---|---|
| 1 | 1 |
| 2 local gettime = require "util.time".now | 2 local gettime = require "util.time".now |
| 3 local setmetatable = setmetatable; | 3 local setmetatable = setmetatable; |
| 4 local floor = math.floor; | |
| 5 | 4 |
| 6 local _ENV = nil; | 5 local _ENV = nil; |
| 7 | 6 |
| 8 local throttle = {}; | 7 local throttle = {}; |
| 9 local throttle_mt = { __index = throttle }; | 8 local throttle_mt = { __index = throttle }; |