Skip to content

Commit

Permalink
Revert "Use buffered channel on detector recv history metrics channel"
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Mar 3, 2016
1 parent 24de993 commit 3aa3599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (d *Detector) values(m *models.Metric, fz bool) ([]float64, error) {
period := d.cfg.Period
// Get values with the same phase.
n := 0
ch := make(chan metricGetResult, int(expiration/period))
ch := make(chan metricGetResult)
for stamp := m.Stamp; stamp+expiration > m.Stamp; stamp -= period {
start := stamp - offset
stop := stamp + offset
Expand Down

0 comments on commit 3aa3599

Please sign in to comment.