From: Jens Axboe Date: Thu, 15 Mar 2012 13:36:39 +0000 (+0100) Subject: gfio: fixup adding/showing of end results X-Git-Tag: gfio-0.1~124 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0ed83bce9e699e9730e2783c9763ba976ee8bf55;hp=3804a0bc9cc567db51486ec5f6fc6d624ff802a4;p=fio.git gfio: fixup adding/showing of end results Signed-off-by: Jens Axboe --- diff --git a/gfio.c b/gfio.c index 6c2b797f..2a38da56 100644 --- a/gfio.c +++ b/gfio.c @@ -1462,11 +1462,15 @@ static void gfio_display_ts(struct fio_client *client, struct thread_stat *ts, struct group_run_stats *rs) { struct gfio_client *gc = client->client_data; + struct gui_entry *ge = gc->ge; gfio_add_end_results(gc, ts, rs); gdk_threads_enter(); - gfio_display_end_results(gc); + if (ge->results_window) + __gfio_display_end_results(ge->results_notebook, gc, ts, rs); + else + gfio_display_end_results(gc); gdk_threads_leave(); } @@ -1502,6 +1506,7 @@ static void gfio_disk_util_op(struct fio_client *client, struct fio_net_cmd *cmd { struct cmd_du_pdu *p = (struct cmd_du_pdu *) cmd->payload; struct gfio_client *gc = client->client_data; + struct gui_entry *ge = gc->ge; unsigned int nr = gc->nr_du; gc->du = realloc(gc->du, (nr + 1) * sizeof(struct cmd_du_pdu)); @@ -1509,7 +1514,10 @@ static void gfio_disk_util_op(struct fio_client *client, struct fio_net_cmd *cmd gc->nr_du++; gdk_threads_enter(); - gfio_disk_util_show(gc); + if (ge->results_window) + __gfio_disk_util_show(ge->results_notebook, gc, p); + else + gfio_disk_util_show(gc); gdk_threads_leave(); }