grpc: fixed issue with grpc throughputs checking session id matches using bad values
This commit is contained in:
parent
6dd7ce731e
commit
b98ff0f744
1 changed files with 5 additions and 5 deletions
|
@ -679,9 +679,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
key = key.split(".")
|
||||
node_id = _INTERFACE_REGEX.search(key[0]).group("node")
|
||||
node_id = int(node_id, base=16)
|
||||
iface_id = int(key[1], base=16)
|
||||
session_id = int(key[2], base=16)
|
||||
if session.id != session_id:
|
||||
iface_id = int(key[1])
|
||||
session_id = key[2]
|
||||
if session.short_session_id() != session_id:
|
||||
continue
|
||||
iface_throughput = throughputs_event.iface_throughputs.add()
|
||||
iface_throughput.node_id = node_id
|
||||
|
@ -691,8 +691,8 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
try:
|
||||
key = key.split(".")
|
||||
node_id = int(key[1], base=16)
|
||||
session_id = int(key[2], base=16)
|
||||
if session.id != session_id:
|
||||
session_id = key[2]
|
||||
if session.short_session_id() != session_id:
|
||||
continue
|
||||
bridge_throughput = (
|
||||
throughputs_event.bridge_throughputs.add()
|
||||
|
|
Loading…
Reference in a new issue