summaryrefslogtreecommitdiff
path: root/tex/context/base/core-uti.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-14 18:00:16 +0200
committerMarius <mariausol@gmail.com>2013-03-14 18:00:16 +0200
commit800d981b5f6f6d1f196dd3b9a421edb76504d600 (patch)
treeb67287c8c77ddfca8571f4160611c12d194304c9 /tex/context/base/core-uti.lua
parent660cef836abefb5cb3256ce80532e5c4abc5af7f (diff)
downloadcontext-800d981b5f6f6d1f196dd3b9a421edb76504d600.tar.gz
beta 2013.03.14 16:12
Diffstat (limited to 'tex/context/base/core-uti.lua')
-rw-r--r--tex/context/base/core-uti.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/core-uti.lua b/tex/context/base/core-uti.lua
index b1b830c31..bf8d2c207 100644
--- a/tex/context/base/core-uti.lua
+++ b/tex/context/base/core-uti.lua
@@ -266,7 +266,10 @@ end)
function statistics.formatruntime(runtime)
if not environment.initex then -- else error when testing as not counters yet
local shipped = texcount['nofshipouts']
- local pages = texcount['realpageno'] - 1
+ local pages = texcount['realpageno']
+ if pages > shipped then
+ pages = shipped
+ end
if shipped > 0 or pages > 0 then
local persecond = shipped / runtime
if pages == 0 then pages = shipped end