diff --git a/main.go b/main.go index 0e74c7cbd..e58ad2eb1 100644 --- a/main.go +++ b/main.go @@ -209,7 +209,7 @@ func reportHandler(w http.ResponseWriter, r *http.Request) { func statsForInts(data []int) map[string]int { sort.Ints(data) res := make(map[string]int, 4) - res["min"] = data[0] + res["fp"] = data[int(float64(len(data))*0.05)] res["med"] = data[len(data)/2] res["nfp"] = data[int(float64(len(data))*0.95)] res["max"] = data[len(data)-1] diff --git a/static/index.html b/static/index.html index 54358c809..76d06e2e5 100644 --- a/static/index.html +++ b/static/index.html @@ -35,13 +35,13 @@ found in the LICENSE file.
Min | Median | 95% | Max | +5% | 50% | 95% | 100% | ||
---|---|---|---|---|---|---|---|---|---|
{{cat.descr}} | -{{report[cat.key].min | number}} {{cat.unit}} | +{{report[cat.key].fp | number}} {{cat.unit}} | {{report[cat.key].med | number}} {{cat.unit}} | {{report[cat.key].nfp | number}} {{cat.unit}} | {{report[cat.key].max | number}} {{cat.unit}} |