X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gfio.c;fp=gfio.c;h=185dbd5c482456bc89d23ac14a041e79e2350a5a;hp=313894169a3976fe8a472ce9d748fa1f81c34daa;hb=5721d270285a5f7e41b0b076a4a43b825239d964;hpb=de26d51f3e909997c9a500bf9f15a1bd5c18bb49 diff --git a/gfio.c b/gfio.c index 31389416..185dbd5c 100644 --- a/gfio.c +++ b/gfio.c @@ -654,6 +654,12 @@ static void gfio_client_added(struct gui_entry *ge, struct fio_client *client) gc->o_list_nr++; } +static void gfio_clear_graph_data(struct gfio_graphs *g) +{ + graph_clear_values(g->iops_graph); + graph_clear_values(g->bandwidth_graph); +} + static void connect_clicked(GtkWidget *widget, gpointer data) { struct gui_entry *ge = data; @@ -694,6 +700,7 @@ static void connect_clicked(GtkWidget *widget, gpointer data) if (!ge->ui->handler_running) pthread_create(&ge->ui->t, NULL, job_thread, ge->ui); gfio_set_state(ge, GE_STATE_CONNECTED); + gfio_clear_graph_data(&ge->graphs); } else { gfio_report_error(ge, "Failed to connect to %s: %s\n", ge->client->client->hostname, strerror(-ret)); }