Commit 0b8510fd authored by Mark Fasheh's avatar Mark Fasheh

- allow parse_size() to parse K, M and G

parent e07a24c2
......@@ -54,12 +54,15 @@ uint64_t parse_size(char *s)
mult *= 1024;
/* fallthrough */
case 'g':
case 'G':
mult *= 1024;
/* fallthrough */
case 'm':
case 'M':
mult *= 1024;
/* fallthrough */
case 'k':
case 'K':
mult *= 1024;
/* fallthrough */
case 'b':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment