mirror of https://github.com/xzeldon/htop.git
DragonFlyBSD update
- drop unused kinfo includes and link argument - detect kvm library necessity at configure step - fix variable typo
This commit is contained in:
parent
4a73e80338
commit
8db8b9edac
|
@ -192,9 +192,10 @@ dragonflybsd_platform_headers = \
|
|||
dragonflybsd/ProcessField.h
|
||||
|
||||
if HTOP_DRAGONFLYBSD
|
||||
AM_LDFLAGS += -lkvm -lkinfo
|
||||
myhtopplatsources = dragonflybsd/Platform.c dragonflybsd/DragonFlyBSDProcessList.c \
|
||||
dragonflybsd/DragonFlyBSDProcess.c
|
||||
myhtopplatsources = \
|
||||
dragonflybsd/Platform.c \
|
||||
dragonflybsd/DragonFlyBSDProcessList.c \
|
||||
dragonflybsd/DragonFlyBSDProcess.c
|
||||
|
||||
myhtopplatheaders = $(dragonflybsd_platform_headers)
|
||||
endif
|
||||
|
|
|
@ -247,6 +247,10 @@ if test "$my_htop_platform" = "darwin"; then
|
|||
AC_CHECK_FUNCS([mach_timebase_info])
|
||||
fi
|
||||
|
||||
if test "$my_htop_platform" = "dragonflybsd"; then
|
||||
AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"])
|
||||
fi
|
||||
|
||||
if test "$my_htop_platform" = "freebsd"; then
|
||||
AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"])
|
||||
fi
|
||||
|
|
|
@ -431,7 +431,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
|||
}
|
||||
|
||||
proc->m_virt = kproc->kp_vm_map_size / ONE_K;
|
||||
proc->m_resident = kproc->kp_vm_rssize * pageSizeKB;
|
||||
proc->m_resident = kproc->kp_vm_rssize * pageSizeKb;
|
||||
proc->nlwp = kproc->kp_nthreads; // number of lwp thread
|
||||
proc->time = (kproc->kp_swtime + 5000) / 10000;
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ in the source distribution for its full text.
|
|||
#include <kvm.h>
|
||||
#include <sys/param.h>
|
||||
#include <osreldate.h>
|
||||
#include <sys/kinfo.h>
|
||||
#include <kinfo.h>
|
||||
#include <sys/jail.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/resource.h>
|
||||
|
|
Loading…
Reference in New Issue