Skip to content

cmds/core/ping: fix counter bug#2724

Merged
rminnich merged 4 commits intou-root:mainfrom
binjip978:fix-ping-count
Jul 27, 2023
Merged

cmds/core/ping: fix counter bug#2724
rminnich merged 4 commits intou-root:mainfrom
binjip978:fix-ping-count

Conversation

@binjip978
Copy link
Copy Markdown
Contributor

ping can run forever if c equal to zero
and run correct number of iteration if c is none zero

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 22, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.17% ⚠️

Comparison is base (12cc9ef) 75.57% compared to head (b2b3d9e) 75.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2724      +/-   ##
==========================================
- Coverage   75.57%   75.40%   -0.17%     
==========================================
  Files         414      414              
  Lines       42257    42257              
==========================================
- Hits        31934    31865      -69     
- Misses      10323    10392      +69     
Files Changed Coverage Δ
cmds/core/ping/ping.go 76.13% <100.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@binjip978 binjip978 added the Awaiting reviewer Waiting for a reviewer. label Jul 22, 2023
@rminnich
Copy link
Copy Markdown
Member

why not just have the default value of c be math.MaxUint64 instead of 0? That would be a very minimal change which would have the same effect.

@rminnich rminnich added Awaiting author Waiting for new changes or feedback for author. and removed Awaiting reviewer Waiting for a reviewer. labels Jul 23, 2023
rminnich
rminnich previously approved these changes Jul 23, 2023
ping can run forever if c equal to zero
and run correct number of iteration if c is none zero

Signed-off-by: Siarhiej Siemianczuk <[email protected]>
@binjip978 binjip978 added Awaiting reviewer Waiting for a reviewer. and removed Awaiting author Waiting for new changes or feedback for author. labels Jul 23, 2023
@binjip978 binjip978 requested a review from rminnich July 25, 2023 15:47
@rminnich rminnich added automerge Applying this label auto-merges the PR when ready Awaiting author Waiting for new changes or feedback for author. and removed Awaiting reviewer Waiting for a reviewer. labels Jul 27, 2023
@rminnich rminnich merged commit 3a5f750 into u-root:main Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Applying this label auto-merges the PR when ready Awaiting author Waiting for new changes or feedback for author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants