Revision 0ffda1dd

View differences:

src/eventlog/event.cc
130 130

  
131 131
        EventLogEntry *eventLogEntry = EventLogEntry::parseEntry(this, index, line, reader->getCurrentLineLength());
132 132

  
133
        // check for eventEndEntries. We do not include such entries in the eventLogEntries
134
        // for backwards compatibility with other plugins (e.g., eventTable)
135
        EventEndEntry * readEventEndEntry = dynamic_cast<EventEndEntry*>(eventLogEntry);
136
        if(readEventEndEntry) {
137
            eventEndEntry = readEventEndEntry;
138
            continue;
139
        }
140

  
133 141
        // skip empty lines
134 142
        if (!eventLogEntry)
135 143
            continue;
......
151 159

  
152 160
        Assert(eventEntry);
153 161

  
154
        EventEndEntry * readEventEndEntry = dynamic_cast<EventEndEntry*>(eventLogEntry);
155

  
156
        if(readEventEndEntry) {
157
            eventEndEntry = readEventEndEntry;
158
            continue;
159
        }
160

  
161 162
        // handle module method end
162 163
        ModuleMethodEndEntry *moduleMethodEndEntry = dynamic_cast<ModuleMethodEndEntry *>(eventLogEntry);
163 164
        if (moduleMethodEndEntry)
src/eventlog/event.h
87 87

  
88 88
        virtual eventnumber_t getEventNumber() { return eventEntry->eventNumber; }
89 89
        virtual simtime_t getSimulationTime() { return eventEntry->simulationTime; }
90
	virtual long getComplexity() { return !eventEndEntry ? 1 : eventEndEntry->complexity; }
90
        virtual long getComplexity() { return !eventEndEntry ? 1 : eventEndEntry->complexity; }
91 91
        virtual int getModuleId() { return eventEntry->moduleId; }
92 92
        virtual long getMessageId() { return eventEntry->messageId; }
93 93
        virtual eventnumber_t getCauseEventNumber() { return eventEntry->causeEventNumber; }

Also available in: Unified diff