Commit 142ef551 authored by Simon Pastor's avatar Simon Pastor
Browse files

PR review

parent 6cc40013
Loading
Loading
Loading
Loading
+86 −80
Original line number Diff line number Diff line
@@ -264,6 +264,12 @@ func processActiveScenarioUpdate() {
	// Update UE info
	ueNames := []string{}
	ueNameList := sbi.activeModel.GetNodeNames("UE")

	//get all measurements to update without waiting for ticker
	if len(ueNameList) > 0 {
		//no need to have the map if no ue to update
		ueMeasMap, _ := sbi.gisCache.GetAllMeasurements()

		for _, name := range ueNameList {
			// Ignore disconnected UEs
			if !isUeConnected(name) {
@@ -331,7 +337,6 @@ func processActiveScenarioUpdate() {
						}

						//update measurements, don't wait for ticker
					ueMeasMap, _ := sbi.gisCache.GetAllMeasurements()
						poaNamesInRange, rsrpsInRange, rsrqsInRange := getMeas(name, "", ueMeasMap)

						var ueDataSbi = UeDataSbi{
@@ -356,6 +361,7 @@ func processActiveScenarioUpdate() {
				}
			}
		}
	}

	// Update UEs that were removed
	for _, prevUeName := range prevUeNames {