Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #1818

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/sources/reference/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ replaceAlias(/(.*): CPU (.*) time/, $1 - $2) -> backend01 - system
consolidateBy(consolidationFunc)
```

When a graph is drawn where width of the graph size in pixels is smaller than the number of datapoints to be graphed, plugin consolidates the values to to prevent line overlap. The consolidateBy() function changes the consolidation function from the default of average to one of `sum`, `min`, `max` or `count`.
When a graph is drawn where width of the graph size in pixels is smaller than the number of datapoints to be graphed, plugin consolidates the values to prevent line overlap. The consolidateBy() function changes the consolidation function from the default of average to one of `sum`, `min`, `max` or `count`.

Valid function names are `sum`, `avg`, `min`, `max` and `count`.

Expand Down
2 changes: 1 addition & 1 deletion pkg/timeseries/moving_average.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (ts TimeSeries) ExponentialMovingAverage(an float64) TimeSeries {
an = math.Min(float64(ts.Len()), an)

// alpha coefficient should be between 0 and 1. If provided n <= 1, then use it as alpha directly. Otherwise, it's a
// number of points in the window and alpha calculted from this information.
// number of points in the window and alpha calculated from this information.
var a float64
var n int
ema := []TimePoint{ts[0]}
Expand Down
2 changes: 1 addition & 1 deletion pkg/zabbixapi/zabbix_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (api *ZabbixAPI) Login(ctx context.Context, username string, password strin
return auth.MustString(), nil
}

// Login methid for Zabbix prior to 5.4
// Login method for Zabbix prior to 5.4
func (api *ZabbixAPI) LoginDeprecated(ctx context.Context, username string, password string) (string, error) {
params := ZabbixAPIParams{
"user": username,
Expand Down
Loading