summaryrefslogtreecommitdiff
path: root/tex/context/base/trac-inf.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-01-21 18:18:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-01-21 18:18:00 +0100
commitb3ab96977eee28a964a58e4c61bddac140c887f2 (patch)
tree8441bc2682c2837d938863d0ea41ffe3bc4a4c7e /tex/context/base/trac-inf.lua
parent9c266934ab4fde7d71d13c607ac5e5e13bedf1ff (diff)
downloadcontext-b3ab96977eee28a964a58e4c61bddac140c887f2.tar.gz
beta 2013.01.21 18:18
Diffstat (limited to 'tex/context/base/trac-inf.lua')
-rw-r--r--tex/context/base/trac-inf.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/trac-inf.lua b/tex/context/base/trac-inf.lua
index 826271169..1d39f24a6 100644
--- a/tex/context/base/trac-inf.lua
+++ b/tex/context/base/trac-inf.lua
@@ -74,11 +74,11 @@ local function stoptiming(instance, report)
end
local function elapsed(instance)
- if type(instance) == "table" then
+ if type(instance) == "number" then
+ return instance or 0
+ else
local timer = timers[instance or "notimer"]
return timer and timer.loadtime or 0
- else
- return tonumber(instance) or 0
end
end