fix: logparser v5 json err

This commit is contained in:
Inanc Gumus
2019-08-29 01:50:04 +03:00
parent 4910370808
commit d28c6d54d2
5 changed files with 36 additions and 24 deletions

View File

@ -39,10 +39,10 @@ func (t *TextReport) Consume(records Iterator) error {
write(w, "DOMAINS\tPAGES\tVISITS\tUNIQUES\n")
write(w, "-------\t-----\t------\t-------\n")
var total Record
var total record
err := records.Each(func(r Record) error {
total = r.Sum(total)
total = r.sum(total)
write(w, "%s\t%s\t%d\t%d\n",
r.domain, r.page,