summaryrefslogtreecommitdiff
path: root/cmd/analysestats/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-10-12 16:28:46 +0100
committerNick White <git@njw.name>2020-10-12 16:28:46 +0100
commitc0396d2c280b6532d2bb4f62ca6267e35c9703f4 (patch)
tree38f9b93208d68adc58c9e21a4c465606eeef3696 /cmd/analysestats/main.go
parentfc6f7ee0d3b383c5fc88de4273f10f03547eb85e (diff)
[analysestats] skip zero confidence pages from stats
Diffstat (limited to 'cmd/analysestats/main.go')
-rw-r--r--cmd/analysestats/main.go4
1 files changed, 4 insertions, 0 deletions
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)
}