Turn glibtop::machine from a value to a pointer, allocated on init.
This hides the glibtop_machine implementation.
This commit is contained in:
committed by
Benoît Dejean
parent
42e860e5ad
commit
0642c2d610
@@ -61,7 +61,7 @@ glibtop_get_proc_segment_p (glibtop *server,
|
||||
if (pid == 0) return;
|
||||
|
||||
/* Get the process info from the kernel */
|
||||
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
|
||||
pinfo = kvm_getprocs (server->machine->kd, KERN_PROC_PID, pid, &count);
|
||||
if ((pinfo == NULL) || (count != 1)) {
|
||||
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user