djberg96 / sys-proctable

A cross-platform Ruby interface for gathering process information on your operating system
Apache License 2.0
150 stars 33 forks source link

Add num_threads field, update specs #81

Closed djberg96 closed 4 years ago

djberg96 commented 4 years ago

In kernels prior to Linux 2.6, the "num_threads" field was hard-coded to 0 as a placeholder. This library was originally written before 2.6 came out, but I never updated it once Linux updated this field to hold a meaningful value.

I also noticed that I didn't have any specs for the fields method, so I added those.