-#include "communicator.h"
-
#include <algorithm>
#include <tr1/functional>
#include <sstream>
#include <msg/msg.h>
#include <xbt/log.h>
+
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
+
#include "misc.h"
#include "options.h"
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
+#include "communicator.h"
std::string message::to_string()
{
static const char* str[] = { "INFO", "CREDIT", "LOAD",
"CTRL_CLOSE", "DATA_CLOSE" };
std::ostringstream oss;
- oss << str[type] << " (" << amount << ")";
+ oss << str[type] << ": " << amount;
return oss.str();
}
-const int communicator::send_count_before_flush = 128;
+const int communicator::send_count_before_flush = 4;
communicator::communicator()
: host((hostdata* )MSG_host_get_data(MSG_host_self()))