Fix spelling mistakes (#4888)

This commit is contained in:
Trevor Pounds
2018-10-19 14:12:01 -04:00
committed by Daniel Nelson
parent 1ec12ba6ad
commit 17360f079c
9 changed files with 13 additions and 13 deletions

View File

@@ -291,7 +291,7 @@ func TestBasicStatsWithOnlySum(t *testing.T) {
}
// Verify that sum doesn't suffer from floating point errors. Early
// implementations of sum were calulated from mean and count, which
// implementations of sum were calculated from mean and count, which
// e.g. summed "1, 1, 5, 1" as "7.999999..." instead of 8.
func TestBasicStatsWithOnlySumFloatingPointErrata(t *testing.T) {
@@ -509,7 +509,7 @@ func TestBasicStatsWithUnknownStat(t *testing.T) {
}
// Test that if Stats isn't supplied, then we only do count, min, max, mean,
// stdev, and s2. We purposely exclude sum for backwards compatability,
// stdev, and s2. We purposely exclude sum for backwards compatibility,
// otherwise user's working systems will suddenly (and surprisingly) start
// capturing sum without their input.
func TestBasicStatsWithDefaultStats(t *testing.T) {

View File

@@ -20,7 +20,7 @@ type ValueCounter struct {
Fields []string
}
// NewValueCounter create a new aggregation plugin which counts the occurances
// NewValueCounter create a new aggregation plugin which counts the occurrences
// of fields and emits the count.
func NewValueCounter() telegraf.Aggregator {
vc := &ValueCounter{}
@@ -46,7 +46,7 @@ func (vc *ValueCounter) SampleConfig() string {
// Description returns the description of the ValueCounter plugin
func (vc *ValueCounter) Description() string {
return "Count the occurance of values in fields."
return "Count the occurrence of values in fields."
}
// Add is run on every metric which passes the plugin