server: fix typos in conversion
authorJens Axboe <axboe@kernel.dk>
Mon, 3 Oct 2011 19:08:48 +0000 (21:08 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Oct 2011 19:08:48 +0000 (21:08 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c
server.c

index e6b51d3516639d06e0230c8fc585a0262fa99c89..4d44b1030961f4ded9d13a018d4f512b2d939edc 100644 (file)
--- a/client.c
+++ b/client.c
@@ -287,7 +287,7 @@ static void convert_ts(struct thread_stat *dst, struct thread_stat *src)
 
        for (i = 0; i < 3; i++) {
                dst->total_io_u[i]      = le64_to_cpu(src->total_io_u[i]);
-               dst->short_io_u[i]      = le64_to_cpu(src->total_io_u[i]);
+               dst->short_io_u[i]      = le64_to_cpu(src->short_io_u[i]);
        }
 
        dst->total_submit       = le64_to_cpu(src->total_submit);
index d0ff25a31a898b243aa3a043ccc64264929331ee..3008b8bc91bd29bc05025a64e12e6bfd112774ab 100644 (file)
--- a/server.c
+++ b/server.c
@@ -523,10 +523,10 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs)
 
        for (i = 0; i < 3; i++) {
                p.ts.total_io_u[i]      = cpu_to_le64(ts->total_io_u[i]);
-               p.ts.short_io_u[i]      = cpu_to_le64(ts->total_io_u[i]);
+               p.ts.short_io_u[i]      = cpu_to_le64(ts->short_io_u[i]);
        }
 
-       p.ts.total_submit               = cpu_to_le64(ts->total_submit);
+       p.ts.total_submit       = cpu_to_le64(ts->total_submit);
        p.ts.total_complete     = cpu_to_le64(ts->total_complete);
 
        for (i = 0; i < 2; i++) {