Skip to content

Commit 711ed38

Browse files
committed
Merge pull request #2779 from ipfs/feature/stats-ruler
stats: Aligned text to 78 ruler, fixed grammar error
2 parents 5f69610 + 5593d77 commit 711ed38

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

core/commands/stat.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ var StatsCmd = &cmds.Command{
3232
var statBwCmd = &cmds.Command{
3333
Helptext: cmds.HelpText{
3434
Tagline: "Print ipfs bandwidth information.",
35-
Synopsis: "ipfs stats bw [--peer <peerId> | -p] [--proto <protocol> | -t] [--poll] [--interval <timeInterval> | -i]",
35+
Synopsis: `ipfs stats bw [--peer <peerId> | -p] [--proto <protocol> | -t] [--poll]
36+
[--interval <timeInterval> | -i]
37+
`,
3638
ShortDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon.
3739
It displays: TotalIn, TotalOut, RateIn, RateOut.
3840
`,
3941
LongDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon.
4042
It displays: TotalIn, TotalOut, RateIn, RateOut.
4143
42-
By default, overall bandwidth and all protocols are shown. To limit bandwidth to
43-
a particular peer, use the 'peer' option along with that peer's multihash id. To
44-
specify a specific protocol, use the 'proto' option. The 'peer' and 'proto'
45-
options cannot be specified simultaneously. The protocols that be queried using
46-
this method are outlined in the specification: https://github.com/ipfs/specs/blob/master/libp2p/7-properties.md#757-protocol-multicodecs
44+
By default, overall bandwidth and all protocols are shown. To limit bandwidth
45+
to a particular peer, use the 'peer' option along with that peer's multihash
46+
id. To specify a specific protocol, use the 'proto' option. The 'peer' and
47+
'proto' options cannot be specified simultaneously. The protocols that are
48+
queried using this method are outlined in the specification:
49+
https://github.com/ipfs/specs/blob/master/libp2p/7-properties.md#757-protocol-multicodecs
4750
4851
Example protocol options:
4952
- /ipfs/id/1.0.0

0 commit comments

Comments
 (0)