Skip to content

Commit

Permalink
fix: variable name typo (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 authored Aug 19, 2023
1 parent bf5f2dd commit c9c5a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ type TimeMetric interface {

const (
defaultBucketNum = 10
defalutTimeWindowSeconds = 120
defaultTimeWindowSeconds = 120
)

// NewTimeMetric init and write all data to registry
func NewTimeMetric(min, max, avg, sum, last *MetricId, mr MetricRegistry) TimeMetric {
return &DefaultTimeMetric{r: mr, min: min, max: max, avg: avg, sum: sum, last: last,
agg: aggregate.NewTimeWindowAggregator(defaultBucketNum, defalutTimeWindowSeconds)}
agg: aggregate.NewTimeWindowAggregator(defaultBucketNum, defaultTimeWindowSeconds)}
}

type DefaultTimeMetric struct {
Expand Down

0 comments on commit c9c5a46

Please sign in to comment.