chore: fix misspelling

This commit is contained in:
Yordis Prieto Lazo
2022-12-18 22:58:07 -05:00
parent 2f959a773c
commit 0842910049
16 changed files with 31 additions and 30 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -50,7 +50,7 @@ func GetStartTime(now time.Time, uptimeDuration time.Duration, lookbackStr strin
startTime = startTime.Add(delay)
}
// Addjust startTime according to lookback duration
// Adjust startTime according to lookback duration
lookbackStartTime := now
if lookbackStr != "" {
lookback, err := time.ParseDuration(lookbackStr)
+6 -6
View File
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -53,7 +53,7 @@ func TestPrometheusMetricsParsingAndMatching(t *testing.T) {
},
},
notExpectedMetrics: []Float64MetricRepresentation{
// Metric with non-existant label.
// Metric with non-existent label.
{
Name: "host_uptime",
Labels: map[string]string{"non-existant-version": "0.0.1"},
@@ -63,7 +63,7 @@ func TestPrometheusMetricsParsingAndMatching(t *testing.T) {
Name: "host_uptime",
Labels: map[string]string{"kernel_version": "mismatched-version"},
},
// Non-existant metric.
// Non-existent metric.
{
Name: "host_downtime",
Labels: map[string]string{},
@@ -99,17 +99,17 @@ func TestPrometheusMetricsParsingAndMatching(t *testing.T) {
Name: "host_uptime",
Labels: map[string]string{},
},
// Metric with non-existant label.
// Metric with non-existent label.
{
Name: "host_uptime",
Labels: map[string]string{"non-existant-version": "0.0.1"},
Labels: map[string]string{"non-existent-version": "0.0.1"},
},
// Metric with incorrect label.
{
Name: "host_uptime",
Labels: map[string]string{"kernel_version": "mismatched-version"},
},
// Non-existant metric.
// Non-existent metric.
{
Name: "host_downtime",
Labels: map[string]string{},
+1 -1
View File
@@ -56,7 +56,7 @@ func CmdlineArgs(cmdlineFilePath string) ([]CmdlineArg, error) {
return nil, fmt.Errorf("error reading the file %s, %v", cmdlineFilePath, err)
}
if len(lines) < 1 {
return nil, fmt.Errorf("no lines are retured")
return nil, fmt.Errorf("no lines are returned")
}
cmdlineArgs := strings.FieldsFunc(lines[0], splitAfterSpace)
var result = make([]CmdlineArg, 0, len(cmdlineArgs))