Skip to content

Commit

Permalink
Merge pull request #257 from mimikun/fix/typo
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
xxxserxxx authored Sep 16, 2024
2 parents a211228 + b4bbb52 commit bf1074e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/gotop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, "#")
}
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion layout/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf1074e

Please sign in to comment.