X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=diskutil.c;h=e4b4b8a57830f8c1661672be0fd613e1b9dd40fd;hb=649c10c59b016ae8586e54746d3761bc6df33c9b;hp=4ddaa33355bdd7a4093ec2aaa056f94617c228ed;hpb=ecc35cf45f60e658856c6f0cbd5b7785753981bb;p=fio.git diff --git a/diskutil.c b/diskutil.c index 4ddaa333..e4b4b8a5 100644 --- a/diskutil.c +++ b/diskutil.c @@ -470,7 +470,7 @@ static void show_agg_stats(struct disk_util_agg *agg, int terse) agg->time_in_queue / agg->slavecount, agg->max_util.u.f); } else { - log_info("slaves;%u;%u;%u;%u;%u;%u;%u;%3.2f%%", + log_info(";slaves;%u;%u;%u;%u;%u;%u;%u;%3.2f%%", agg->ios[0] / agg->slavecount, agg->ios[1] / agg->slavecount, agg->merges[0] / agg->slavecount, @@ -540,10 +540,10 @@ void print_disk_util(struct disk_util_stat *dus, struct disk_util_agg *agg, if (util > 100.0) util = 100.0; - if (agg->slavecount) - log_info(" "); - if (!terse) { + if (agg->slavecount) + log_info(" "); + log_info(" %s: ios=%u/%u, merge=%u/%u, ticks=%u/%u, " "in_queue=%u, util=%3.2f%%", dus->name, dus->ios[0], dus->ios[1], @@ -562,8 +562,7 @@ void print_disk_util(struct disk_util_stat *dus, struct disk_util_agg *agg, * If the device has slaves, aggregate the stats for * those slave devices also. */ - if (agg->slavecount) - show_agg_stats(agg, terse); + show_agg_stats(agg, terse); if (!terse) log_info("\n");