Commit 2fe46d41 authored by Jorge Visca's avatar Jorge Visca

fix normalization

parent 003ac665
......@@ -27,6 +27,8 @@ local ReffA = {}
local FinishedT = {}
local finish_count = {}
-------------------------------------------------------------------------------
local function parse (f)
local Es = {}
......@@ -63,6 +65,9 @@ local function parse (f)
FinishedT[status][ #FinishedT[status]+1 ] = t
end
end
finish_count[status] = (finish_count[status] or 0) + 1
do
Ecount[status] = Ecount[status] or {}
local EcountS = Ecount[status]
......@@ -256,7 +261,7 @@ local function process_Zhit ()
local stats = {}
for zone, count in pairs(ZhitS) do
stats[#stats+1] = {zone=zone, hitrate=count / NRUNS}
stats[#stats+1] = {zone=zone, hitrate=count / finish_count[status]}
end
-- filter most frequent arrivals
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment