Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data types for ignored stat fields #401 #402

Merged
merged 1 commit into from Jul 27, 2021
Merged

Fix data types for ignored stat fields #401 #402

merged 1 commit into from Jul 27, 2021

Commits on Jul 27, 2021

  1. Fix data types for ignored stat fields #401

    Some ignored fields in the /proc/[pid]/stat file may have values that are bigger than the max value of the current Go type that is used for the ignored variable. That leads to issues in runtime on some systems that use the maximum possible values for the related fields.
    
    See for details:
    * https://man7.org/linux/man-pages/man5/proc.5.html
    * https://man7.org/linux/man-pages/man3/scanf.3.html
    
    Signed-off-by: Vyacheslav Kulakov <kulakov.home@gmail.com>
    vykulakov committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    0eb76a7 View commit details
    Browse the repository at this point in the history