Skip to content

Commit f0bbfa5

Browse files
Christian Lindiglindig
authored andcommitted
fixup! CP-50259 simplify parsing size with kib, mib, etc suffix
Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
1 parent d204656 commit f0bbfa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi-cli-server/record_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ let bytes_of_string str =
10801080
let ( ** ) a b = Int64.mul a b in
10811081
let invalid msg = raise (Invalid_argument msg) in
10821082
try
1083-
Scanf.sscanf str "%Ld%s" @@ fun size suffix ->
1083+
Scanf.sscanf str "%Ld %s" @@ fun size suffix ->
10841084
match String.lowercase_ascii suffix with
10851085
| _ when size < 0L ->
10861086
invalid str

0 commit comments

Comments
 (0)