[PATCH] Forgot to include 'M' as a unit postfix
authorJens Axboe <jens.axboe@oracle.com>
Mon, 6 Nov 2006 13:51:58 +0000 (14:51 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 6 Nov 2006 13:51:58 +0000 (14:51 +0100)
We skipped from K to G, forgetting 'M' in between...

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index f6cf888c163fa5c35c8a733655d63b7f1533a9c2..0352c555c8a9b191e8adff4fb4514ae976afbc69 100644 (file)
--- a/init.c
+++ b/init.c
@@ -517,7 +517,7 @@ static void fixup_options(struct thread_data *td)
 static char *to_kmg(unsigned int val)
 {
        char *buf = malloc(32);
 static char *to_kmg(unsigned int val)
 {
        char *buf = malloc(32);
-       char post[] = { 0, 'K', 'G', 'P', -1 };
+       char post[] = { 0, 'K', 'M', 'G', 'P', -1 };
        char *p = post;
 
        while (*p != -1) {
        char *p = post;
 
        while (*p != -1) {