projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing fio_mutex_up() on return
[fio.git]
/
server.c
diff --git
a/server.c
b/server.c
index c2498497ef214bc28804e91d960f4e913226e0e5..7a9b0a447d306b0e1be0928d2635c4e19a14b96a 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-1007,6
+1007,7
@@
static int accept_loop(int listen_sk)
}
/* exits */
}
/* exits */
+ strncpy(client_sockaddr_str, from, INET6_ADDRSTRLEN);
handle_connection(sk);
}
handle_connection(sk);
}
@@
-1158,6
+1159,10
@@
void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs)
p.ts.latency_window = cpu_to_le64(ts->latency_window);
p.ts.latency_percentile.u.i = cpu_to_le64(fio_double_to_uint64(ts->latency_percentile.u.f));
p.ts.latency_window = cpu_to_le64(ts->latency_window);
p.ts.latency_percentile.u.i = cpu_to_le64(fio_double_to_uint64(ts->latency_percentile.u.f));
+ p.ts.nr_block_infos = le64_to_cpu(ts->nr_block_infos);
+ for (i = 0; i < p.ts.nr_block_infos; i++)
+ p.ts.block_infos[i] = le32_to_cpu(ts->block_infos[i]);
+
convert_gs(&p.rs, rs);
fio_net_send_cmd(server_fd, FIO_NET_CMD_TS, &p, sizeof(p), NULL, NULL);
convert_gs(&p.rs, rs);
fio_net_send_cmd(server_fd, FIO_NET_CMD_TS, &p, sizeof(p), NULL, NULL);