Diff

util/throttle.lua @ 7988:dc758422d896

util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time
author Kim Alvefur <zash@zash.se>
date Mon, 20 Mar 2017 00:48:28 +0100
parent 6777:5de6b93d0190
child 8245:9499db96c032
line wrap: on
line diff
--- a/util/throttle.lua	Sat Mar 18 18:50:17 2017 +0100
+++ b/util/throttle.lua	Mon Mar 20 00:48:28 2017 +0100
@@ -1,5 +1,5 @@
 
-local gettime = require "socket".gettime;
+local gettime = require "util.time".now
 local setmetatable = setmetatable;
 local floor = math.floor;