Skip to content

feat: use round() instead of ceil to fix #16080#16705

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
auspham:austinpham/31122081-fix-16080
Jan 29, 2025
Merged

feat: use round() instead of ceil to fix #16080#16705
yejianquan merged 1 commit intosonic-net:masterfrom
auspham:austinpham/31122081-fix-16080

Conversation

@auspham
Copy link
Contributor

@auspham auspham commented Jan 29, 2025

Description of PR

Summary:
Use method round() to suit better need comparing to ceil vs int().

Fixes # (issue) #16080

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@auspham
Copy link
Contributor Author

auspham commented Jan 29, 2025

@rraghav-cisco and @sdszhang for review

@auspham auspham force-pushed the austinpham/31122081-fix-16080 branch from cdbee7a to e0311d3 Compare January 29, 2025 04:19
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Austin Pham <[email protected]>
@auspham auspham force-pushed the austinpham/31122081-fix-16080 branch from e0311d3 to b3aff46 Compare January 29, 2025 04:23
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@auspham auspham changed the title feat: add is_around to fix #16080 feat: use round() instead of ceil to fix #16080 Jan 29, 2025
@yejianquan yejianquan merged commit baeeaf9 into sonic-net:master Jan 29, 2025
11 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 29, 2025
Description of PR
Summary:
Use method round() to suit better need comparing to ceil vs int().

Fixes # (issue) sonic-net#16080

Signed-off-by: Austin Pham <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #16720

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202405: Azure/sonic-mgmt.msft#33

mssonicbld pushed a commit that referenced this pull request Jan 30, 2025
Description of PR
Summary:
Use method round() to suit better need comparing to ceil vs int().

Fixes # (issue) #16080

Signed-off-by: Austin Pham <[email protected]>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
Description of PR
Summary:
Use method round() to suit better need comparing to ceil vs int().

Fixes # (issue) sonic-net#16080

Signed-off-by: Austin Pham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants