aboutsummaryrefslogtreecommitdiffstats
path: root/util/timer.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
commit83d1e9570a93cbea53e0420ada95e7273695fe78 (patch)
treebaa76027e2950ac788347cbda919e81abc010108 /util/timer.lua
parent1dc92981c7d2fab06d8e59814ad4f0710c34ef28 (diff)
downloadprosody-83d1e9570a93cbea53e0420ada95e7273695fe78.tar.gz
prosody-83d1e9570a93cbea53e0420ada95e7273695fe78.zip
util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time
Diffstat (limited to 'util/timer.lua')
-rw-r--r--util/timer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/timer.lua b/util/timer.lua
index 3713625d..7e2e9414 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -9,7 +9,7 @@
local server = require "net.server";
local math_min = math.min
local math_huge = math.huge
-local get_time = require "socket".gettime;
+local get_time = require "util.time".now
local t_insert = table.insert;
local pairs = pairs;
local type = type;