Browse Source

byte err

master
zjt 1 year ago
parent
commit
b384c469e8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      rudp_test.go
  2. 1
    1
      util.go

+ 1
- 1
rudp_test.go View File

@@ -6,7 +6,7 @@ import (
6 6
 )
7 7
 
8 8
 func Test_bitShow(t *testing.T) {
9
-	if show := bitShow(1023); show != "1023 byte" {
9
+	if show := bitShow(1023); show != "1023 b" {
10 10
 		t.Errorf("byte show error %v,show %v", 1023, show)
11 11
 	}
12 12
 

+ 1
- 1
util.go View File

@@ -18,7 +18,7 @@ func checkErr(err error) {
18 18
 }
19 19
 
20 20
 func bitShow(n int) string {
21
-	var ext string = "byte"
21
+	var ext string = "b"
22 22
 	if n >= 1024 {
23 23
 		n /= 1024
24 24
 		ext = "Kb"

Loading…
Cancel
Save