Loading go-packages/meep-model/model.go +23 −21 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ const ( NetCharOperator = "OPERATOR" NetCharZone = "ZONE" NetCharPoa = "POA" NetCharPoaCell4g = "POA CELLULAR 4G" NetCharDC = "DISTANT CLOUD" NetCharEdge = "EDGE" NetCharFog = "FOG" Loading Loading @@ -375,7 +376,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er zone.NetChar.Throughput = nc.Throughput zone.NetChar.PacketLoss = nc.PacketLoss updated = true } else if ncType == NetCharPoa { } else if ncType == NetCharPoa || ncType == NetCharPoaCell4g { nl := n.object.(*ceModel.NetworkLocation) nl.TerminalLinkLatency = nc.Latency nl.TerminalLinkLatencyVariation = nc.LatencyVariation Loading @@ -402,6 +403,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er NetCharOperator + ", " + NetCharZone + ", " + NetCharPoa + ", " + NetCharPoaCell4g + ", " + NetCharDC + ", " + NetCharEdge + ", " + NetCharFog + ", " + Loading Loading
go-packages/meep-model/model.go +23 −21 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ const ( NetCharOperator = "OPERATOR" NetCharZone = "ZONE" NetCharPoa = "POA" NetCharPoaCell4g = "POA CELLULAR 4G" NetCharDC = "DISTANT CLOUD" NetCharEdge = "EDGE" NetCharFog = "FOG" Loading Loading @@ -375,7 +376,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er zone.NetChar.Throughput = nc.Throughput zone.NetChar.PacketLoss = nc.PacketLoss updated = true } else if ncType == NetCharPoa { } else if ncType == NetCharPoa || ncType == NetCharPoaCell4g { nl := n.object.(*ceModel.NetworkLocation) nl.TerminalLinkLatency = nc.Latency nl.TerminalLinkLatencyVariation = nc.LatencyVariation Loading @@ -402,6 +403,7 @@ func (m *Model) UpdateNetChar(nc *ceModel.EventNetworkCharacteristicsUpdate) (er NetCharOperator + ", " + NetCharZone + ", " + NetCharPoa + ", " + NetCharPoaCell4g + ", " + NetCharDC + ", " + NetCharEdge + ", " + NetCharFog + ", " + Loading