summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Czaplinski <mateusz@czaplinski.pl>2011-06-03 20:01:04 +0200
committerMateusz Czaplinski <mateusz@czaplinski.pl>2011-06-03 20:01:04 +0200
commit0420c607c406804f86fe23c5c0cb4def29519d7a (patch)
tree00dfc3d47a07573a8284242ff1bf277858b75afc
parentbdbd94a266c410a879db6bf2e6cb0a8cc1918760 (diff)
downloadluacov-0420c607c406804f86fe23c5c0cb4def29519d7a.tar.bz2
luacov/stats.lua: fixed sometimes broken stats (was 'filedata.max' ~= 'max')
-rw-r--r--src/luacov/stats.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luacov/stats.lua b/src/luacov/stats.lua
index 40f71e2..5390c75 100644
--- a/src/luacov/stats.lua
+++ b/src/luacov/stats.lua
@@ -57,7 +57,7 @@ function M.save(data, stats)
stats:seek("set")
for filename, filedata in pairs(data) do
local max = filedata.max
- stats:write(filedata.max, ":", filename, "\n")
+ stats:write(max, ":", filename, "\n")
for i = 1, max do
local hits = filedata[i]
if not hits then