# HG changeset patch # User Kim Alvefur # Date 1489975887 -3600 # Node ID 5632aa85e0b63de93cec6355bf80fa84d683e4dd # Parent 522099269b490e3853fda80f3ebbc8891d8e0065# Parent dc758422d8963d45f421d5d7f8e8ad4ef6bd8683 Merge 0.10->trunk diff -r 522099269b49 -r 5632aa85e0b6 configure --- a/configure Fri Mar 17 23:14:03 2017 +0100 +++ b/configure Mon Mar 20 03:11:27 2017 +0100 @@ -2,10 +2,12 @@ # Defaults +APP_NAME="Prosody" +APP_DIRNAME="prosody" PREFIX="/usr/local" -SYSCONFDIR="$PREFIX/etc/prosody" +SYSCONFDIR="$PREFIX/etc/$APP_DIRNAME" LIBDIR="$PREFIX/lib" -DATADIR="$PREFIX/var/lib/prosody" +DATADIR="$PREFIX/var/lib/$APP_DIRNAME" LUA_SUFFIX="" LUA_DIR="/usr" LUA_BINDIR="/usr/bin" @@ -29,19 +31,19 @@ show_help() { cat < /dev/null 2> /dev/null diff -r 522099269b49 -r 5632aa85e0b6 util/statistics.lua --- a/util/statistics.lua Fri Mar 17 23:14:03 2017 +0100 +++ b/util/statistics.lua Mon Mar 20 03:11:27 2017 +0100 @@ -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 diff -r 522099269b49 -r 5632aa85e0b6 util/statsd.lua --- a/util/statsd.lua Fri Mar 17 23:14:03 2017 +0100 +++ b/util/statsd.lua Mon Mar 20 03:11:27 2017 +0100 @@ -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 diff -r 522099269b49 -r 5632aa85e0b6 util/throttle.lua --- a/util/throttle.lua Fri Mar 17 23:14:03 2017 +0100 +++ b/util/throttle.lua Mon Mar 20 03:11:27 2017 +0100 @@ -1,5 +1,5 @@ -local gettime = require "socket".gettime; +local gettime = require "util.time".now local setmetatable = setmetatable; local floor = math.floor; diff -r 522099269b49 -r 5632aa85e0b6 util/timer.lua --- a/util/timer.lua Fri Mar 17 23:14:03 2017 +0100 +++ b/util/timer.lua Mon Mar 20 03:11:27 2017 +0100 @@ -9,7 +9,7 @@ local indexedbheap = require "util.indexedbheap"; local log = require "util.logger".init("timer"); local server = require "net.server"; -local get_time = require "socket".gettime; +local get_time = require "util.time".now local type = type; local debug_traceback = debug.traceback; local tostring = tostring;