X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=libfio.c;h=6144a474738fe9a51a530ffad691aa234138d665;hb=d7e3adb683f85e49e078599a08aec7cd7c32d977;hp=7348b16491ff266cadb7ba46d75e503984ccbc95;hpb=8d853d0bbf4487af9445f7253c1951970ce75200;p=fio.git diff --git a/libfio.c b/libfio.c index 7348b164..6144a474 100644 --- a/libfio.c +++ b/libfio.c @@ -156,8 +156,13 @@ void reset_all_stats(struct thread_data *td) void reset_fio_state(void) { + int i; + groupid = 0; thread_number = 0; + cur_segment = 0; + for (i = 0; i < nr_segments; i++) + segments[i].nr_threads = 0; stat_number = 0; done_secs = 0; }