From 7b3b116e3777e1dd17ef3d335b2a503a603bc264 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sat, 21 Jul 2012 13:05:00 +0200 Subject: beta 2012.07.21 13:05 --- tex/context/base/luat-sto.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tex/context/base/luat-sto.lua') diff --git a/tex/context/base/luat-sto.lua b/tex/context/base/luat-sto.lua index 860aa1121..30a72a29b 100644 --- a/tex/context/base/luat-sto.lua +++ b/tex/context/base/luat-sto.lua @@ -104,9 +104,15 @@ end --~ end statistics.register("stored bytecode data", function() - local modules = (storage.nofmodules > 0 and storage.nofmodules) or (status.luabytecodes - lua.firstbytecode - 1) - local dumps = (storage.noftables > 0 and storage.noftables) or storage.max-storage.min + 1 - return format("%s modules, %s tables, %s chunks",modules,dumps,modules+dumps) + local nofmodules = (storage.nofmodules > 0 and storage.nofmodules) or (status.luabytecodes - lua.firstbytecode - 1) + local nofdumps = (storage.noftables > 0 and storage.noftables ) or storage.max-storage.min + 1 + local tofmodules = storage.tofmodules or 0 + local tofdumps = storage.toftables or 0 + return format("%s modules (%0.3f sec), %s tables (%0.3f sec), %s chunks (%0.3f sec)", + nofmodules, tofmodules, + nofdumps, tofdumps, + nofmodules + nofdumps, tofmodules + tofdumps + ) end) if lua.bytedata then -- cgit v1.2.3