X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73c0ed0b27066ab9ff42c4d4de4f1860ab3285a4..1ca14e48f892f466f752a7a7077e6a28565d2c59:/teshsuite/s4u/io-stream/io-stream.cpp diff --git a/teshsuite/s4u/io-stream/io-stream.cpp b/teshsuite/s4u/io-stream/io-stream.cpp index 96154a27b6..6c7f39f26c 100644 --- a/teshsuite/s4u/io-stream/io-stream.cpp +++ b/teshsuite/s4u/io-stream/io-stream.cpp @@ -29,19 +29,19 @@ static void streamer(size_t size) XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock()); XBT_INFO("[Bob -> Alice] Store and Forward (100 blocks)"); - sg4::IoPtr read = bob_disk->read_async(size/100.0); - sg4::CommPtr transfer = sg4::Comm::sendto_async(bob, alice, size/100.0); - sg4::IoPtr write = alice_disk->write_async(size/100.); + sg4::IoPtr read = bob_disk->read_async(size / 100); + sg4::CommPtr transfer = sg4::Comm::sendto_async(bob, alice, size / 100); + sg4::IoPtr write = alice_disk->write_async(size / 100); clock = sg4::Engine::get_clock(); for (int i = 0; i < 99; i++){ read->wait(); - read = bob_disk->read_async(size/100.0); + read = bob_disk->read_async(size / 100); transfer->wait(); - transfer = sg4::Comm::sendto_async(bob, alice, size/100.0); + transfer = sg4::Comm::sendto_async(bob, alice, size / 100); write->wait(); - write = alice_disk->write_async(size/100.); + write = alice_disk->write_async(size / 100); } read->wait();