• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Mu-L / fping / 7778573588
88%

Build:
DEFAULT BRANCH: develop
Ran 05 Feb 2024 02:10AM UTC
Jobs 3
Files 4
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Feb 2024 10:57AM UTC coverage: 82.435%. Remained the same
7778573588

push

github

schweikert
Defensive coding: guard against a division by zero

In the function print_per_system_stats(), if packets have been
lost, the number of sent packets is checked to be positive before
dividing by it.  If no packets have been lost, this is not checked.
Either the existing check is not needed, or both code paths need
the check.

The function print_per_system_splits() is quite similar to
print_per_system_stats(), and has the equivalent guards against a
division by zero in both code paths, not just one of them.

In the spirit of defensive coding, I think it is better to be safe
and add the missing guard against a division by zero.

1117 of 1355 relevant lines covered (82.44%)

183.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 macos - 7778573588.1 05 Feb 2024 02:10AM UTC 0
75.3
GitHub Action Run
2 ubuntu-22.04 - 7778573588.2 05 Feb 2024 03:10AM UTC 0
78.75
GitHub Action Run
3 ubuntu-20.04 - 7778573588.3 05 Feb 2024 03:10AM UTC 0
78.75
GitHub Action Run
Source Files on build 7778573588
Detailed source file information is not available for this build.
  • Back to Repo
  • 290d944b on github
  • Prev Build on develop (#7516828550)
  • Next Build on develop (#7820997123)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc