client: only do le64_to_cpu() on io_sample_data member if iolog is histogram
authorTuan Hoang <tuan.hoang1@ibm.com>
Thu, 7 Jul 2022 07:53:52 +0000 (09:53 +0200)
committerTuan Hoang <tuan.hoang1@ibm.com>
Thu, 7 Jul 2022 07:53:52 +0000 (09:53 +0200)
commit3b189ee6fae2cd1e1f78cc13b896b70eca9cc09a
tree71f0e2f6737bb109ace265960d72284b685b0b42
parent1f43cc2e7b2f3ac7461f8ea66bb9b32cb03075c3
client: only do le64_to_cpu() on io_sample_data member if iolog is histogram

In the case of histogram iolog, the union io_sample_data member is a
pointer of struct io_u_plat_entry, while in the case of normal iolog, it
is an uint64_t. Thus only need to do the byteswap in case it is an
uint64_t.

This has been done similarly in server code.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Signed-off-by: Tuan Hoang <tuan.hoang1@ibm.com>
client.c