From 8ee68eedb5cbdf06585f6f37bdc361b69437a25d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 15 Aug 2016 22:39:47 +0200 Subject: sync with Cotnext as of 2016-08-15 --- lualibs-trac-inf.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lualibs-trac-inf.lua') diff --git a/lualibs-trac-inf.lua b/lualibs-trac-inf.lua index f4c4e55..a1d7fb0 100644 --- a/lualibs-trac-inf.lua +++ b/lualibs-trac-inf.lua @@ -14,7 +14,7 @@ if not modules then modules = { } end modules ['trac-inf'] = { local type, tonumber, select = type, tonumber, select local format, lower, find = string.format, string.lower, string.find local concat = table.concat -local clock = os.gettimeofday or os.clock -- should go in environment +local clock = os.gettimeofday or os.clock -- should go in environment local setmetatableindex = table.setmetatableindex local serialize = table.serialize @@ -183,6 +183,7 @@ end function statistics.runtime() stoptiming(statistics) + stoptiming(statistics) -- somehow we can start the timer twice, but where return statistics.formatruntime(elapsedtime(statistics)) end -- cgit v1.2.3