Revision 77a045fa src/envir/eventlogfilemgr.cc

View differences:

src/envir/eventlogfilemgr.cc
163 163
        if (currentEvent != message->getPreviousEventNumber()) {
164 164
            currentEvent = message->getPreviousEventNumber();
165 165
            EventLogWriter::recordEventEntry_e_t_m_msg_d(feventlog, currentEvent, message->getSendingTime(), currentEvent == 0 ? simulation.getSystemModule()->getId() : message->getSenderModuleId(), -1,0);
166
            EventLogWriter::recordEventEndEntry_e_c(feventlog, currentEvent,0);
166 167
        }
167 168
        if (currentEvent == 0)
168 169
            componentMethodBegin(simulation.getSystemModule(), message->getSenderModule(), "initialize", empty_va);
......
227 228
        // TODO: we can't use simulation.getEventNumber() and simulation.getSimTime(), because when we start a new run
228 229
        // these numbers are still set from the previous run (i.e. not zero)
229 230
        EventLogWriter::recordEventEntry_e_t_m_msg_d(feventlog, 0, 0, simulation.getSystemModule()->getId(), -1,0);
231
        EventLogWriter::recordEventEndEntry_e_c(feventlog, 0,0);
230 232
        EventLogWriter::recordSimulationBeginEntry_v_rid(feventlog, OMNETPP_VERSION, runId);
231 233
        fflush(feventlog);
232 234
    }
......
291 293
    if (isEventLogRecordingEnabled)
292 294
    {
293 295
        EventLogWriter::recordEventEndEntry_e_c(feventlog, log_eventNumber,
294
                        complexity);
296
                        ((long)(1000*1000*complexity)));   //Store complexity in microseconds
295 297
    }
296 298
}
297 299

  

Also available in: Unified diff