Revision 636cbdd5 src/envir/eventlogfilemgr.cc

View differences:

src/envir/eventlogfilemgr.cc
162 162
        cMessage *message = *it;
163 163
        if (currentEvent != message->getPreviousEventNumber()) {
164 164
            currentEvent = message->getPreviousEventNumber();
165
            EventLogWriter::recordEventEntry_e_t_m_msg_d(feventlog, currentEvent, message->getSendingTime(), currentEvent == 0 ? simulation.getSystemModule()->getId() : message->getSenderModuleId(), -1,0);
165
            EventLogWriter::recordEventEntry_e_t_m_ce_msg_d(feventlog, currentEvent, message->getSendingTime(), currentEvent == 0 ? simulation.getSystemModule()->getId() : message->getSenderModuleId(), 0, -1,0);
166 166
            EventLogWriter::recordEventEndEntry_e_c(feventlog, currentEvent,0);
167 167
        }
168 168
        if (currentEvent == 0)
......
227 227
        const char *runId = ev.getConfigEx()->getVariable(CFGVAR_RUNID);
228 228
        // TODO: we can't use simulation.getEventNumber() and simulation.getSimTime(), because when we start a new run
229 229
        // these numbers are still set from the previous run (i.e. not zero)
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
        EventLogWriter::recordEventEntry_e_t_m_ce_msg_d(feventlog, 0, 0, simulation.getSystemModule()->getId(), 0 ,  -1,0);
232 231
        EventLogWriter::recordSimulationBeginEntry_v_rid(feventlog, OMNETPP_VERSION, runId);
233 232
        fflush(feventlog);
234 233
    }

Also available in: Unified diff