gfio: fixup adding/showing of end results

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/gfio.c b/gfio.c
index 6c2b797..2a38da5 100644
--- a/gfio.c
+++ b/gfio.c
@@ -1462,11 +1462,15 @@
 			    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 @@
 {
 	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 @@
 	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();
 }