trouble getting memory and swap info

看板DFBSD_kernel作者時間21年前 (2004/10/28 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
I am trying to get gkrellm2 working on DragonFlyBSD. I got it to compile and run but it does not report the memory or swap. Well, actually, it does report them, its just that the values are 0. I used the src/usr.bin/top/machine.c and the xsysinfo dfport as a guide. I am not at my DragonFly system at the moment but basically what I did was to set the vmmeter and vmstats structures as defined in vmmeter.h and used in top/machine.c, using sysctlbyname to get the information. Is there something else I need to do? Thanks. -- Glenn Johnson <glennpj@charter.net>
文章代碼(AID): #11V-9q00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #11V-9q00 (DFBSD_kernel)