From c0396d2c280b6532d2bb4f62ca6267e35c9703f4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 12 Oct 2020 16:28:46 +0100 Subject: [analysestats] skip zero confidence pages from stats --- cmd/analysestats/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/analysestats/main.go b/cmd/analysestats/main.go index a15f3b5..10be46a 100644 --- a/cmd/analysestats/main.go +++ b/cmd/analysestats/main.go @@ -109,6 +109,10 @@ func getMeanStddevOfBest(bestfn string, conffn string) (float64, float64, error) if !ok { continue } + // skip zero confidence pages, as they're likely blank pages + if c == 0 { + continue + } bestConfs = append(bestConfs, c) } -- cgit v1.2.1-24-ge1ad