From 6ae40572e7643edcc29f8d5b071221dd1e04bdf3 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 5 Jul 2017 23:20:26 +0200 Subject: 2017-07-05 23:06:00 --- tex/context/base/mkiv/trac-inf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tex/context/base/mkiv/trac-inf.lua') diff --git a/tex/context/base/mkiv/trac-inf.lua b/tex/context/base/mkiv/trac-inf.lua index d09fce77a..99fe30a6e 100644 --- a/tex/context/base/mkiv/trac-inf.lua +++ b/tex/context/base/mkiv/trac-inf.lua @@ -84,7 +84,7 @@ local seconds = function(n) return n or 0 end local function starttiming(instance) local timer = timers[instance or "notimer"] - local it = timer.timing or 0 + local it = timer.timing if it == 0 then timer.starttime = ticks() if not timer.loadtime then @@ -116,7 +116,7 @@ end local function elapsed(instance) if type(instance) == "number" then - return instance or 0 + return instance else local timer = timers[instance or "notimer"] return timer and seconds(timer.loadtime) or 0 -- cgit v1.2.3