diff options
| author | Will Hawkins <[email protected]> | 2022-03-16 21:42:17 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-03-16 21:42:17 -0400 |
| commit | 0a005d29c22ea9ea00b9c65c0cdfc6a9d5673646 (patch) | |
| tree | 79d56300222ebbced99c23348d68bce7a84754ec /ma/ma.go | |
| parent | aac7ecca40b9c5e4ffeedcd38f3c6bb24bd6c3e8 (diff) | |
Format: Add a line-length formatting.
Diffstat (limited to 'ma/ma.go')
| -rw-r--r-- | ma/ma.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -29,7 +29,11 @@ type MovingAverage struct { } func NewMovingAverage(intervals int) *MovingAverage { - return &MovingAverage{instants: make([]float64, intervals), intervals: intervals, divisor: saturating.NewSaturatingInt(intervals)} + return &MovingAverage{ + instants: make([]float64, intervals), + intervals: intervals, + divisor: saturating.NewSaturatingInt(intervals), + } } func (ma *MovingAverage) AddMeasurement(measurement float64) { |
