From: Martin Quinson Date: Sun, 8 Jul 2018 14:42:22 +0000 (+0200) Subject: make the output readable for very large task amounts too X-Git-Tag: v3_21~513 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a488868fb60c25f6f741388c498f2beb89a97bff make the output readable for very large task amounts too --- diff --git a/examples/s4u/app-masterworker/s4u-app-masterworker.cpp b/examples/s4u/app-masterworker/s4u-app-masterworker.cpp index 852b18a6ce..68d0fa84a3 100644 --- a/examples/s4u/app-masterworker/s4u-app-masterworker.cpp +++ b/examples/s4u/app-masterworker/s4u-app-masterworker.cpp @@ -35,7 +35,7 @@ public: /* - Select a @ref worker in a round-robin way */ mailbox = simgrid::s4u::Mailbox::by_name(std::string("worker-") + std::to_string(i % workers_count)); - if (number_of_tasks < 10000 || i % 10000 == 0) + if (number_of_tasks < 10000 || (number_of_tasks < 100000 && i % 10000 == 0) || i % 100000 == 0) XBT_INFO("Sending \"%s\" (of %ld) to mailbox \"%s\"", (std::string("Task_") + std::to_string(i)).c_str(), number_of_tasks, mailbox->get_cname());