X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=tickmarks.c;h=2605f721f0089de5567f0a1195d6d27e0cc71095;hp=2959f0267ccb6116f1f8726c51c37f93057b9a75;hb=a67909069393f090bb00c0039206bc30830f3427;hpb=7175d91deff20b1408450c231b2b445ea28f7f29 diff --git a/tickmarks.c b/tickmarks.c index 2959f026..2605f721 100644 --- a/tickmarks.c +++ b/tickmarks.c @@ -51,6 +51,8 @@ static void shorten(struct tickmark *tm, int nticks, int *power_of_ten, str = tm[i].string; l = strlen(str); + if (strcmp(str, "0") == 0) + continue; if (l > 9 && strcmp(&str[l - 9], "000000000") == 0) { *power_of_ten = 9; shorten_char = use_KMG_symbols ? 'G' : '\0';