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

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


commit 1a45ab8b428c9d62cc0b910b053e48acc433a852
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/1a45ab8b428c9d62cc0b910b053e48acc433a852


-- 
DragonFly BSD source repository



More information about the Commits mailing list