提交 711ed38d 作者: Jeromy Johnson

Merge pull request #2779 from ipfs/feature/stats-ruler

stats: Aligned text to 78 ruler, fixed grammar error
...@@ -32,18 +32,21 @@ var StatsCmd = &cmds.Command{ ...@@ -32,18 +32,21 @@ var StatsCmd = &cmds.Command{
var statBwCmd = &cmds.Command{ var statBwCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Print ipfs bandwidth information.", Tagline: "Print ipfs bandwidth information.",
Synopsis: "ipfs stats bw [--peer <peerId> | -p] [--proto <protocol> | -t] [--poll] [--interval <timeInterval> | -i]", Synopsis: `ipfs stats bw [--peer <peerId> | -p] [--proto <protocol> | -t] [--poll]
[--interval <timeInterval> | -i]
`,
ShortDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon. ShortDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon.
It displays: TotalIn, TotalOut, RateIn, RateOut. It displays: TotalIn, TotalOut, RateIn, RateOut.
`, `,
LongDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon. LongDescription: `'ipfs stats bw' prints bandwidth information for the ipfs daemon.
It displays: TotalIn, TotalOut, RateIn, RateOut. It displays: TotalIn, TotalOut, RateIn, RateOut.
By default, overall bandwidth and all protocols are shown. To limit bandwidth to By default, overall bandwidth and all protocols are shown. To limit bandwidth
a particular peer, use the 'peer' option along with that peer's multihash id. To to a particular peer, use the 'peer' option along with that peer's multihash
specify a specific protocol, use the 'proto' option. The 'peer' and 'proto' id. To specify a specific protocol, use the 'proto' option. The 'peer' and
options cannot be specified simultaneously. The protocols that be queried using 'proto' options cannot be specified simultaneously. The protocols that are
this method are outlined in the specification: https://github.com/ipfs/specs/blob/master/libp2p/7-properties.md#757-protocol-multicodecs queried using this method are outlined in the specification:
https://github.com/ipfs/specs/blob/master/libp2p/7-properties.md#757-protocol-multicodecs
Example protocol options: Example protocol options:
- /ipfs/id/1.0.0 - /ipfs/id/1.0.0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论