diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-01-21 18:18:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-01-21 18:18:00 +0100 |
commit | b3ab96977eee28a964a58e4c61bddac140c887f2 (patch) | |
tree | 8441bc2682c2837d938863d0ea41ffe3bc4a4c7e /tex/context/base/trac-inf.lua | |
parent | 9c266934ab4fde7d71d13c607ac5e5e13bedf1ff (diff) | |
download | context-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.lua | 6 |
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 |