home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!sun4nl!mhres!pronto!bbm
- From: bbm@mh.nl (Martin Baan)
- Subject: working xload
- Message-ID: <C0133E.oF@pronto.mh.nl>
- X-Md4-Signature: fb5474f570629f6d97ac37eaf6f496c4
- Sender: bbm@pronto.mh.nl (Martin Baan)
- Organization: Multihouse Automation, the Netherlands
- Date: Tue, 29 Dec 1992 15:59:38 GMT
- Lines: 43
-
-
- Since I haven't been able to find a working copy of xload (for SLS
- .99) I tried to get it working myself. I'm not sure all I did is
- correct, but I did get xload to display things that look right to me.
-
- This is what I did:
-
- I downloaded pub/linux/packages/banjo-incoming/xmem.tar.Z and
- pub/linux/sources/usr.bin.X11/xload.tar.Z from tsx-11.
-
- I added psdata.c and psdata.h from xmem.tar.Z to the files from
- xload.tar.Z.
-
- I added the next line to get_load.c:
- #include <linux/sched.h>
-
- changed the literal "_averunnable" in function InitLoadPoint in
- get_load.c to "_avenrun".
-
- added psdata.c and psdata.h to Imakefile:
- SRCS = xload.c get_load.c psdata.c
- OBJS = xload.o get_load.o psdata.o
-
- after that:
-
- xmkmf
- make depend
- make
-
- and it works!
-
- Note: I didn't use the macro CALC_LOAD as defined in sched.h, although
- I'm sure it is intended for this kind of programs...
-
-
-
-
-
- --
- Martin Baan bbm@mh.nl via internet backbones
- Multihouse Automatisering B.V. uucp: ..!{uunet,sun4nl}!mh.nl!bbm
- Doesburgweg 7, 2803 PL Gouda, The Netherlands phone/fax: +31 1820 62911/62500
-
-