summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuto Tanaka <karaage_nennen@icloud.com>2024-05-15 23:23:37 +0900
committerYuto Tanaka <karaage_nennen@icloud.com>2024-05-15 23:24:04 +0900
commitb4bbb5292c973bb9dd3b21101251c8cbf2e60493 (patch)
treedeecf6a970f98b8df4ede06f87f52a9dde491f0a
parent3e50a670474909c72892d05f5715c2c28680005d (diff)
fix: typo
-rw-r--r--build/gotop.conf2
-rw-r--r--config.go4
-rw-r--r--docs/layouts.md2
-rw-r--r--layout/parser.go2
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
diff --git a/config.go b/config.go
index 671737b..0024aff 100644
--- a/config.go
+++ b/config.go
@@ -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.