diff options
author | Sean Russell <60757196+xxxserxxx@users.noreply.github.com> | 2024-09-16 20:27:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 20:27:55 +0000 |
commit | bf1074ec170a068ef10267d584db8272efaa5642 (patch) | |
tree | b2a1c4d63ff559c0065ff1b2a1974f6cb6a7a63e | |
parent | a2112287846545b9e5572157343a30a9ae9200f2 (diff) | |
parent | b4bbb5292c973bb9dd3b21101251c8cbf2e60493 (diff) |
Merge pull request #257 from mimikun/fix/typo
fix: typo
-rw-r--r-- | build/gotop.conf | 2 | ||||
-rw-r--r-- | config.go | 4 | ||||
-rw-r--r-- | docs/layouts.md | 2 | ||||
-rw-r--r-- | layout/parser.go | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/build/gotop.conf b/build/gotop.conf index 5ab6308..062c920 100644 --- a/build/gotop.conf +++ b/build/gotop.conf @@ -20,7 +20,7 @@ netinterface=all layout=default # The maximum log file size, in bytes maxlogsize=5000000 -# If set, export data as Promethius metrics on the interface:port. +# If set, export data as Prometheus metrics on the interface:port. # E.g., `:8080` (colon is required, interface is not) #metricsexportport= # Display network IO in mpbs if true @@ -205,7 +205,7 @@ func load(in io.Reader, conf *Config) error { // Write serializes the configuration to a file. // The configuration written is based on the loaded configuration, plus any // command-line changes, so it can be used to update an existing configuration -// file. The file will be written to the specificed `--config` argument file, +// file. The file will be written to the specified `--config` argument file, // if one is set; otherwise, it'll create one in the user's config directory. func (conf *Config) Write() (string, error) { var dir *configdir.Config @@ -257,7 +257,7 @@ func marshal(c *Config) []byte { fmt.Fprintf(buff, "%s=%s\n", layout, c.Layout) fmt.Fprintln(buff, "# The maximum log file size, in bytes") fmt.Fprintf(buff, "%s=%d\n", maxlogsize, c.MaxLogSize) - fmt.Fprintln(buff, "# If set, export data as Promethius metrics on the interface:port.\n# E.g., `:8080` (colon is required, interface is not)") + fmt.Fprintln(buff, "# If set, export data as Prometheus metrics on the interface:port.\n# E.g., `:8080` (colon is required, interface is not)") if c.ExportPort == "" { fmt.Fprint(buff, "#") } diff --git a/docs/layouts.md b/docs/layouts.md index 20e7ab5..e03ba93 100644 --- a/docs/layouts.md +++ b/docs/layouts.md @@ -63,7 +63,7 @@ and these are separated by spaces. in later (spanned) rows. 13. Widgets are filled in top down, left-to-right order. 14. The larges row span in a row defines the top-level row span; all smaller - row spans constitude sub-rows in the row. For example, `cpu mem/3 net/5` + row spans constitute sub-rows in the row. For example, `cpu mem/3 net/5` means that net/5 will be 5 rows tall overall, and mem will compose 3 of them. If following rows do not have enough widgets to fill the gaps, spacers will be used. diff --git a/layout/parser.go b/layout/parser.go index b922067..f60a2f7 100644 --- a/layout/parser.go +++ b/layout/parser.go @@ -56,7 +56,7 @@ The syntax for the layout specification is: in later (spanned) rows. 13. Widgets are filled in top down, left-to-right order. 14. The larges row span in a row defines the top-level row span; all smaller - row spans constitude sub-rows in the row. For example, `cpu mem/3 net/5` + row spans constitute sub-rows in the row. For example, `cpu mem/3 net/5` means that net/5 will be 5 rows tall overall, and mem will compose 3 of them. If following rows do not have enough widgets to fill the gaps, spacers will be used. |