Merge pull request #231 from tomwilkie/foo-debug

Squash merged reports as they come out of the LIFO, not individual reports as they come in.
This commit is contained in:
Tom Wilkie
2015-06-15 17:53:11 +02:00

View File

@@ -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: