Code Review: Initial arena size name.

This commit is contained in:
Matt T. Proud 2013-05-22 13:42:44 +02:00
parent c07abf8521
commit 298a90c143
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import (
const ( const (
// Assuming sample rate of 1 / 15Hz, this allows for one hour's worth of // Assuming sample rate of 1 / 15Hz, this allows for one hour's worth of
// storage per metric without any major reallocations. // storage per metric without any major reallocations.
initialSeriesArena = 4 * 60 initialSeriesArenaSize = 4 * 60
) )
// Models a given sample entry stored in the in-memory arena. // Models a given sample entry stored in the in-memory arena.
@ -122,7 +122,7 @@ func (s *stream) getRangeValues(in model.Interval) model.Values {
func newStream(metric model.Metric) *stream { func newStream(metric model.Metric) *stream {
return &stream{ return &stream{
metric: metric, metric: metric,
values: make(model.Values, 0, initialSeriesArena), values: make(model.Values, 0, initialSeriesArenaSize),
} }
} }