Skip to content

Commit

Permalink
- allow parse_size() to parse K, M and G
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fasheh committed Apr 20, 2014
1 parent e07a24c commit 0b8510f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 0b8510f

Please sign in to comment.