Codebase list golang-github-vbauerster-mpb / e477abd
it's default case Vladimir Bauer 4 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
22 import (
33 "fmt"
44 "io"
5 "math"
65 "strconv"
76 )
87
4645 unit = _iMiB
4746 case self < _iTiB:
4847 unit = _iGiB
49 case self <= math.MaxInt64:
48 default:
5049 unit = _iTiB
5150 }
5251
9594 unit = _MB
9695 case self < _TB:
9796 unit = _GB
98 case self <= math.MaxInt64:
97 default:
9998 unit = _TB
10099 }
101100