diff options
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 |