aboutsummaryrefslogtreecommitdiffstats
path: root/util/throttle.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-20 00:48:28 +0100
committerKim Alvefur <zash@zash.se>2017-03-20 00:48:28 +0100
commit2200724140d472766c3e78bab761f9cbce97b020 (patch)
treebaa76027e2950ac788347cbda919e81abc010108 /util/throttle.lua
parentfb586ecffc730c4ab451936d4172086e673c931e (diff)
downloadprosody-2200724140d472766c3e78bab761f9cbce97b020.tar.gz
prosody-2200724140d472766c3e78bab761f9cbce97b020.zip
util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time
Diffstat (limited to 'util/throttle.lua')
-rw-r--r--util/throttle.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/throttle.lua b/util/throttle.lua
index 3d3f5d2d..18692a8a 100644
--- a/util/throttle.lua
+++ b/util/throttle.lua
@@ -1,5 +1,5 @@
-local gettime = require "socket".gettime;
+local gettime = require "util.time".now
local setmetatable = setmetatable;
local floor = math.floor;