From 040f6af4c23fb189b718e58ef289c5dfa00b0633 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Mon, 15 Jun 2015 14:11:50 +0000 Subject: [PATCH] Squash merged reports as they come out of the LIFO, not individual reports as they come in. --- app/report_lifo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/report_lifo.go b/app/report_lifo.go index 94c594e74..b137deed9 100644 --- a/app/report_lifo.go +++ b/app/report_lifo.go @@ -41,7 +41,6 @@ func NewReportLIFO(r reporter, maxAge time.Duration) *ReportLIFO { select { case report := <-r.Reports(): // Incoming report from the collecter. - report = report.Squash() // TODO?: make this a CLI argument. tr := timedReport{ Timestamp: time.Now(), Report: report, @@ -55,6 +54,7 @@ func NewReportLIFO(r reporter, maxAge time.Duration) *ReportLIFO { for _, r := range l.reports { report.Merge(r.Report) } + report = report.Squash() // TODO?: make this a CLI argument. req <- report case q := <-l.quit: