Show 50 top blocked/requestsed/clients instead of 3.

Closes #312
This commit is contained in:
Eugene Bujak 2018-08-31 18:21:07 +03:00
parent 7bf513b638
commit 30553c6a9a

View File

@ -429,9 +429,9 @@ func handleStatsTop(w http.ResponseWriter, r *http.Request) {
}
toMarshal := map[string]interface{}{
"top_queried_domains": produceTop(domains, 3),
"top_blocked_domains": produceTop(blocked, 3),
"top_clients": produceTop(clients, 3),
"top_queried_domains": produceTop(domains, 50),
"top_blocked_domains": produceTop(blocked, 50),
"top_clients": produceTop(clients, 50),
}
json, err := json.Marshal(toMarshal)
if err != nil {