update expanded net labels

This commit is contained in:
Bradley Cicenas
2017-01-08 16:13:25 +00:00
parent 3b0373b34f
commit 72066aba6e
2 changed files with 17 additions and 6 deletions

View File

@@ -13,6 +13,11 @@ const (
gb = mb * 1024
)
// convenience method
func byteFormatInt(n int) string {
return byteFormat(int64(n))
}
func byteFormat(n int64) string {
if n < kb {
return fmt.Sprintf("%sB", strconv.FormatInt(n, 10))