Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added a FIXME for a weird hardcoded value
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 9 Apr 2018 12:41:58 +0000 (14:41 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 9 Apr 2018 13:06:49 +0000 (15:06 +0200)
src/instr/instr_paje_events.cpp

index c50abc0..983265c 100644 (file)
@@ -93,7 +93,7 @@ void LinkEvent::print()
   XBT_DEBUG("%s: event_type=%u, timestamp=%.*f", __func__, eventType_, TRACE_precision(), timestamp_);
   if (instr_fmt_type != instr_fmt_paje)
     return;
-  if (timestamp_ < 1e-12)
+  if (timestamp_ < 1e-12) // FIXME: Why is this hardcoded? What does it stand for? Use a constant variable!
     stream << eventType_ << " " << 0 << " " << getType()->get_id() << " " << getContainer()->get_id();
   else
     stream << eventType_ << " " << timestamp_ << " " << getType()->get_id() << " " << getContainer()->get_id();