Skip to content

Commit a74f999

Browse files
committed
fix typo
1 parent bff0359 commit a74f999

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Find out the highest cpu consumed threads of java, and print the stack of these
9090

9191
Example:
9292
show-busy-java-threads # show busy java threads info
93-
show-busy-java-threads 1 # update every 1 seconds, (stop by eg: CTRL+C)
93+
show-busy-java-threads 1 # update every 1 second, (stop by eg: CTRL+C)
9494
show-busy-java-threads 3 10 # update every 3 seconds, update 10 times
9595

9696
Options:
@@ -106,7 +106,7 @@ Options:
106106
-h, --help display this help and exit
107107
delay the delay between updates in seconds
108108
count the number of updates
109-
delay/count arguments imitates style of vmstat command
109+
delay/count arguments imitates the style of vmstat command
110110
```
111111
112112
### 示例

show-busy-java-threads

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ uname | grep '^Linux' -q || {
1818
exit 2
1919
}
2020

21-
# Get corrent current user name via whoami command
21+
# Get current user name via whoami command
2222
# See https://www.lifewire.com/current-linux-user-whoami-command-3867579
23-
# Because if run command by `sudo -u`, env var $USER is not rewrited/correct, just inherited from outside!
23+
# Because if run command by `sudo -u`, env var $USER is not rewritten/correct, just inherited from outside!
2424
readonly USER="`whoami`"
2525

2626
usage() {
@@ -32,7 +32,7 @@ Find out the highest cpu consumed threads of java, and print the stack of these
3232
3333
Example:
3434
${PROG} # show busy java threads info
35-
${PROG} 1 # update every 1 seconds, (stop by eg: CTRL+C)
35+
${PROG} 1 # update every 1 second, (stop by eg: CTRL+C)
3636
${PROG} 3 10 # update every 3 seconds, update 10 times
3737
3838
Options:
@@ -48,7 +48,7 @@ Options:
4848
-h, --help display this help and exit
4949
delay the delay between updates in seconds
5050
count the number of updates
51-
delay/count arguments imitates style of vmstat command
51+
delay/count arguments imitates the style of vmstat command
5252
EOF
5353

5454
exit $1

0 commit comments

Comments
 (0)