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

giampaolo / psutil / 1928 / 2
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 16 May 2017 11: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

16 May 2017 11:49AM UTC coverage: 94.543%. Remained the same
1928.2

push

travis-ci

giampaolo
Fix socket to PID translation on FreeBSD. (#1070)

This file was derived from FreeBSD usr.bin/sockstat/sockstat.c. The
logic of socket to PID translation was copied incorrectly. The hash,
that sockstat(1) utility has, is completely internal feature, it isn't
part of FreeBSD API, it is just to speed things up. So, to use this
hash one actually needs to create it: declare array of buckets, populate
it with sockets. In the freebsd_socks.c this wasn't done. This fix
doesn't create the hash, instead it removes remnants of hashing that was
there in sockstat.c. It makes code more simple, but of course slower than
original sockstat(1) in case if machine is running zillions of sockets. I
decided to go this way simply because I am low on time to invest into
psutil, and also because better first provide correct and simple
implementation and then improve it, rather than jump for complexity.

2027 of 2144 relevant lines covered (94.54%)

0.95 hits per line

Source Files on job 1928.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1928
  • Travis Job 1928.2
  • 5b646386 on github
  • Prev Job for on master (#1927.2)
  • Next Job for on master (#1929.2)
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