mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-11 13:45:39 +01:00
update expanded net labels
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user