From fe6dbcb6a17959fd1b9a0acc92428b93b861e47e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 21 Oct 2005 16:57:15 +0200 Subject: [PATCH] [PATCH] fio: rename stat file + location, it wasn't reliable before --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 1abb1f9..5ce9350 100644 --- a/fio.c +++ b/fio.c @@ -235,7 +235,7 @@ static int init_stat_file(struct thread_data *td) if (!write_stat) return 0; - sprintf(n, "%s.stat", td->file_name); + sprintf(n, "fio_thread%d.stat", td->thread_number); td->stat_fd = open(n, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (td->stat_fd == -1) { perror("open stat file"); -- 2.25.1