Skip to content

Commit 1f8aa57

Browse files
authored
[-] fix typos across codebase (#1374)
1 parent 6266854 commit 1f8aa57

12 files changed

Lines changed: 21 additions & 21 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Protobuf files
1616
*.pb.go
1717

18-
# Packages ouput folder
18+
# Packages output folder
1919
dist
2020
docs/godoc
2121
site

grafana/postgres/v11/stat-statements-top-fast.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@
921921
"type": "hidden"
922922
},
923923
{
924-
"alias": "Block bandwith",
924+
"alias": "Block bandwidth",
925925
"align": "auto",
926926
"colorMode": null,
927927
"colors": [
@@ -1062,7 +1062,7 @@
10621062
]
10631063
}
10641064
],
1065-
"title": "Top by block bandwith (assuming 8K blocks)",
1065+
"title": "Top by block bandwidth (assuming 8K blocks)",
10661066
"transform": "table",
10671067
"type": "table"
10681068
},

grafana/postgres/v11/stat-statements-top.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@
10631063
"properties": [
10641064
{
10651065
"id": "displayName",
1066-
"value": "Block bandwith"
1066+
"value": "Block bandwidth"
10671067
},
10681068
{
10691069
"id": "unit",
@@ -1181,7 +1181,7 @@
11811181
"sortBy": [
11821182
{
11831183
"desc": true,
1184-
"displayName": "Block bandwith"
1184+
"displayName": "Block bandwidth"
11851185
}
11861186
]
11871187
},
@@ -1241,7 +1241,7 @@
12411241
]
12421242
}
12431243
],
1244-
"title": "Top by block bandwith (assuming 8K blocks)",
1244+
"title": "Top by block bandwidth (assuming 8K blocks)",
12451245
"type": "table"
12461246
},
12471247
{

grafana/prometheus/v11/table-details.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@
672672
"refId": "D"
673673
}
674674
],
675-
"title": "Block bandwith ($agg_interval tot.)",
675+
"title": "Block bandwidth ($agg_interval tot.)",
676676
"type": "timeseries"
677677
},
678678
{

grafana/prometheus/v11/tables-top.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@
491491
"refId": "B"
492492
}
493493
],
494-
"title": "Heap / idx block read bandwith",
494+
"title": "Heap / idx block read bandwidth",
495495
"transformations": [
496496
{
497497
"id": "organize",
@@ -589,7 +589,7 @@
589589
"refId": "B"
590590
}
591591
],
592-
"title": "Toast / Tidx block read bandwith",
592+
"title": "Toast / Tidx block read bandwidth",
593593
"transformations": [
594594
{
595595
"id": "organize",

grafana/prometheus/v12/table-details-prometheus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@
689689
"refId": "D"
690690
}
691691
],
692-
"title": "Block bandwith ($agg_interval tot.)",
692+
"title": "Block bandwidth ($agg_interval tot.)",
693693
"type": "timeseries"
694694
},
695695
{

grafana/prometheus/v12/tables-top-prometheus.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
"refId": "B"
501501
}
502502
],
503-
"title": "Heap / idx block read bandwith",
503+
"title": "Heap / idx block read bandwidth",
504504
"transformations": [
505505
{
506506
"id": "organize",
@@ -599,7 +599,7 @@
599599
"refId": "B"
600600
}
601601
],
602-
"title": "Toast / Tidx block read bandwith",
602+
"title": "Toast / Tidx block read bandwidth",
603603
"transformations": [
604604
{
605605
"id": "organize",

internal/reaper/database.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ func (r *Reaper) DetectConfigurationChanges(ctx context.Context, md *sources.Sou
392392
if rows.Scan(&epoch, &objIdent, &objValue) != nil {
393393
return changeCounts
394394
}
395-
prevРash, ok := md.ChangeState["configuration_hashes"][objIdent]
395+
prevHash, ok := md.ChangeState["configuration_hashes"][objIdent]
396396
ll := l.WithField("setting", objIdent)
397397
if ok { // we have existing state
398-
if prevРash != objValue {
399-
ll.Warningf("settings change detected: %s = %s (prev: %s)", objIdent, objValue, prevРash)
398+
if prevHash != objValue {
399+
ll.Warningf("settings change detected: %s = %s (prev: %s)", objIdent, objValue, prevHash)
400400
detectedChanges = append(detectedChanges, metrics.Measurement{
401401
metrics.EpochColumnName: epoch,
402402
"tag_setting": objIdent,

internal/reaper/logparser_local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (lp *LogParser) parseLogsLocal() error {
7272
for i <= linesRead {
7373
_, err = reader.ReadString('\n')
7474
if err == io.EOF && i < linesRead {
75-
logger.Warningf("Failed to open logfile %s: %s", latest, err)
75+
logger.Warningf("Unexpected EOF while skipping lines in logfile %s: %s", latest, err)
7676
linesRead = 0
7777
break
7878
} else if err != nil {

internal/sources/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func (srcs Sources) Validate() (Sources, error) {
8181
}
8282

8383
func (s *Source) GetDatabaseName() string {
84-
if с, err := pgx.ParseConfig(s.ConnStr); err == nil {
85-
return с.Database
84+
if c, err := pgx.ParseConfig(s.ConnStr); err == nil {
85+
return c.Database
8686
}
8787
return ""
8888
}

0 commit comments

Comments
 (0)