From b204443a59e6cf38383b0e86b7fadf3be7e54945 Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 27 May 2014 16:47:16 +0200 Subject: [PATCH] when doing two consecutive write, each one should have the full bandwidth. It wasn't the case with the lines that were commented in storage_n11.cpp --- examples/msg/io/file_unlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/msg/io/file_unlink.c b/examples/msg/io/file_unlink.c index 04e7bddc3d..c07e7112d4 100644 --- a/examples/msg/io/file_unlink.c +++ b/examples/msg/io/file_unlink.c @@ -48,6 +48,10 @@ int host(int argc, char *argv[]) write = MSG_file_write(file,100000); // Write for 100Ko XBT_INFO("\tHave written %llu on %s",write,MSG_file_get_name(file)); + // Write into the new file + write = MSG_file_write(file,100000); // Write for 100Ko + XBT_INFO("\tHave written %llu on %s",write,MSG_file_get_name(file)); + // Close the file XBT_INFO("\tClose file '%s'",MSG_file_get_name(file)); MSG_file_close(file); -- 2.20.1