Add thread number ID to appropriate network commands

The client doesn't necessarily have a 1:1 mapping between jobs
and its internal job representation, so allow it to tell the
various jobs apart.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/gfio.c b/gfio.c
index be0a4ac..7dcb188 100644
--- a/gfio.c
+++ b/gfio.c
@@ -1461,6 +1461,7 @@
 	sum_group_stats(&client_gs, &p->rs);
 
 	client_ts.members++;
+	client_ts.thread_number = p->ts.thread_number;
 	client_ts.groupid = p->ts.groupid;
 
 	if (++sum_stat_nr == sum_stat_clients) {
@@ -1788,6 +1789,8 @@
 	struct gui_entry *ge = gc->ge;
 	char tmp[8];
 
+	p->thread_number = le32_to_cpu(p->thread_number);
+	p->groupid = le32_to_cpu(p->groupid);
 	convert_thread_options_to_cpu(o, &p->top);
 
 	gdk_threads_enter();