File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,16 @@ type V2Output struct {
16
16
}
17
17
18
18
func (v * V2Output ) GetBucketOutput (size int64 , status int ) (output string ) {
19
+ var tmp_size uint64
20
+
21
+ if size >= 0 {
22
+ tmp_size = uint64 (size )
23
+ }
24
+
19
25
output = fmt .Sprintf (" \\ _[%s] %s - value: %s" ,
20
26
check .StatusText (status ),
21
27
* v .V2Output .Name ,
22
- convert .BytesIEC (size ))
28
+ convert .BytesIEC (tmp_size ))
23
29
24
30
return
25
31
}
Original file line number Diff line number Diff line change @@ -7,10 +7,16 @@ import (
7
7
)
8
8
9
9
func (v * V2Output ) GetObjectOutput (size int64 , status int , path string ) (output string ) {
10
+ var tmp_size uint64
11
+
12
+ if size >= 0 {
13
+ tmp_size = uint64 (size )
14
+ }
15
+
10
16
output += fmt .Sprintf (" \\ _[%s] %s: %s\n " ,
11
17
check .StatusText (status ),
12
18
path ,
13
- convert .BytesIEC (size ))
19
+ convert .BytesIEC (tmp_size ))
14
20
15
21
return
16
22
}
You can’t perform that action at this time.
0 commit comments