chore: fix some comments (#1818)
Signed-off-by: TechVest <techdashen@qq.com>
This commit is contained in:
@@ -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]}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user