Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Misc code simplifications guided by Sonar smells.
[simgrid.git] / src / instr / instr_paje_trace.cpp
index 60ebc5c..c2b75b1 100644 (file)
@@ -33,8 +33,7 @@ void dump_buffer(bool force)
   } else {
     auto i = buffer.begin();
     for (auto const& event : buffer) {
-      double head_timestamp = event->timestamp_;
-      if (head_timestamp > last_timestamp_to_dump)
+      if (event->timestamp_ > last_timestamp_to_dump)
         break;
       event->print();
       delete event;