Commit c05f86a4 authored by Rob Pike's avatar Rob Pike

fix up YB and add ZB, EB in example

R=rsc
CC=golang-dev
https://golang.org/cl/183107
parent ca0def66
......@@ -1360,6 +1360,8 @@ const (
GB
TB
PB
EB
ZB
YB
)
</pre>
......@@ -1373,6 +1375,10 @@ func (b ByteSize) String() string {
switch {
case b &gt;= YB:
return fmt.Sprintf("%.2fYB", b/YB)
case b &gt;= ZB:
return fmt.Sprintf("%.2fZB", b/ZB)
case b &gt;= EB:
return fmt.Sprintf("%.2fEB", b/EB)
case b &gt;= PB:
return fmt.Sprintf("%.2fPB", b/PB)
case b &gt;= TB:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment