pb
pb copied to clipboard
[Question] How can i use speed about MiB/s and not p/s
Thanks for your working of pb, it's great repo.
I have a question about speed:
How can i use speed about MiB/s and not p/s.
Thanks any help!
Thank you!
For v3: bar.Set(pb.Bytes, true)
or bar.Set(pb.SIBytesPrefix, true)
For v1: bar.SetUnits(pb.U_BYTES)
Oh, sorry, you want to remove "p/s"
In the template, speed element must be {{speed . "%s"}}
or {{speed . "%s something instead p/s"}}
I tried this in https://github.com/pingcap/tiup/pull/1312 and I had to use {{speed . "%%s/s"}}
to get "MiB/s" instead of "MiB p/s". I think this resolves this issue/question.