Commit 7aab7837 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

renamed INIT event to OTHER for legacy support of replay files

parent 27f1623f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ func activateScenarioMetrics() {
	//inserting an INIT event at T0
	var ev dataModel.Event
	ev.Name = "Init"
	ev.Type_ = "INIT"
	ev.Type_ = "OTHER"
	j, _ := json.Marshal(ev)

	var em ms.EventMetric
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ func (r *ReplayMgr) playEventByIndex() error {

	// Process INIT event
	isInitEvent := false
	if replayEvent.Event.Type_ == "INIT" && replayEvent.Event.Name == "Init" {
	if replayEvent.Event.Type_ == "OTHER" && replayEvent.Event.Name == "Init" {

		// Skip to next event if INIT event should be ignored
		if r.ignoreInitEvent {