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

Mu-L / fping / 7778573588 / 3
88%
develop: 88%

Build:
DEFAULT BRANCH: develop
Ran 05 Feb 2024 05:50AM UTC
Files 4
Run time 0s
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: 78.747%. Remained the same
7778573588.3

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.

993 of 1261 relevant lines covered (78.75%)

65.63 hits per line

Source Files on job ubuntu-20.04 - 7778573588.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7778573588
  • 290d944b on github
  • Prev Job for on develop (#7516828550.2)
  • Next Job for on develop (#7820997123.2)
  • 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