util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time

This commit is contained in:
Kim Alvefur 2017-03-20 00:48:28 +01:00
parent fb586ecffc
commit 2200724140
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
local t_sort = table.sort
local m_floor = math.floor;
local time = require "socket".gettime;
local time = require "util.time".now;
local function nop_function() end

View file

@ -1,6 +1,6 @@
local socket = require "socket";
local time = require "socket".gettime;
local time = require "util.time".now
local function new(config)
if not config or not config.statsd_server then

View file

@ -1,5 +1,5 @@
local gettime = require "socket".gettime;
local gettime = require "util.time".now
local setmetatable = setmetatable;
local floor = math.floor;

View file

@ -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;