pkgsrc/sysutils/libgtop/patches/patch-dl
2009-07-11 13:14:13 +00:00

18 lines
545 B
Text

$NetBSD: patch-dl,v 1.1 2009/07/11 13:14:13 hasso Exp $
--- sysdeps/freebsd/procsegment.c.orig 2009-07-11 00:17:02 +0300
+++ sysdeps/freebsd/procsegment.c 2009-07-11 00:18:25 +0300
@@ -69,8 +69,13 @@ glibtop_get_proc_segment_p (glibtop *ser
return;
}
+#ifdef __DragonFly__
+ buf->text_rss = pinfo[0].kp_vm_tsize * pagesize;
+ buf->data_rss = pinfo[0].kp_vm_dsize * pagesize;
+#else
buf->text_rss = pinfo[0].ki_tsize * pagesize;
buf->data_rss = pinfo[0].ki_dsize * pagesize;
+#endif
buf->flags = _glibtop_sysdeps_proc_segment;
}