git: libc & libkvm: Fix wrong calculations in getloadavg() functions.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Aug 30 00:54:48 PDT 2020


commit 3b3ed2fbbdc26d06014e574d216edfcfb5070653
Author: Sascha Wildner <saw at online.de>
Date:   Sun Aug 30 09:52:34 2020 +0200

    libc & libkvm: Fix wrong calculations in getloadavg() functions.
    
    41ca9afb26bd2f0654acb8462f6abe441e329f80 changed the ldavg field of
    struct loadavg to an array of __uint64_t from previously fixpt_t
    which is __uint32_t.
    
    Adjust two associated nelem calculations to use __uint64_t as well.

Summary of changes:
 lib/libc/gen/getloadavg.c   | 2 +-
 lib/libkvm/kvm_getloadavg.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3b3ed2fbbdc26d06014e574d216edfcfb5070653


-- 
DragonFly BSD source repository



More information about the Commits mailing list