client/server: make sure that all elements in io_u_lat_m[] are transferred and received
[fio.git] / client.c
index 1b4d3d7efdc92f3d8b895b2409befeca13a37124..80096bf8a81a7bc652fab31fc146dca24718d6e7 100644 (file)
--- a/client.c
+++ b/client.c
@@ -908,10 +908,10 @@ static void convert_ts(struct thread_stat *dst, struct thread_stat *src)
                dst->io_u_complete[i]   = le32_to_cpu(src->io_u_complete[i]);
        }
 
-       for (i = 0; i < FIO_IO_U_LAT_U_NR; i++) {
+       for (i = 0; i < FIO_IO_U_LAT_U_NR; i++)
                dst->io_u_lat_u[i]      = le32_to_cpu(src->io_u_lat_u[i]);
+       for (i = 0; i < FIO_IO_U_LAT_M_NR; i++)
                dst->io_u_lat_m[i]      = le32_to_cpu(src->io_u_lat_m[i]);
-       }
 
        for (i = 0; i < DDIR_RWDIR_CNT; i++)
                for (j = 0; j < FIO_IO_U_PLAT_NR; j++)
@@ -1322,7 +1322,7 @@ static int fio_client_handle_iolog(struct fio_client *client,
        log_pathname = malloc(10 + strlen((char *)pdu->name) +
                        strlen(client->hostname));
        if (!log_pathname) {
-               log_err("fio: memory allocation of unique pathname failed");
+               log_err("fio: memory allocation of unique pathname failed\n");
                return -1;
        }
        /* generate a unique pathname for the log file using hostname */