Skip to content

Commit

Permalink
Fix one LGTM alert related integer division
Browse files Browse the repository at this point in the history
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
  • Loading branch information
samaity committed Jun 3, 2020
1 parent 2f17452 commit 9369448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/portconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def gen_port_config(ports, parent_intf_id, index, alias_at_lanes, lanes, k, off
parent_intf_id = int(offset)+int(parent_intf_id)
alias_start = 0 + offset

step = int(assigned_lane)/int(num_lane_used)
step = int(assigned_lane)//int(num_lane_used)
for i in range(0,int(assigned_lane), step):
intf_name = PORT_STR + str(parent_intf_id)
ports[intf_name] = {}
Expand Down

0 comments on commit 9369448

Please sign in to comment.