home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22042 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.4 KB  |  55 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!mhres!pronto!bbm
  3. From: bbm@mh.nl (Martin Baan)
  4. Subject: working xload
  5. Message-ID: <C0133E.oF@pronto.mh.nl>
  6. X-Md4-Signature: fb5474f570629f6d97ac37eaf6f496c4
  7. Sender: bbm@pronto.mh.nl (Martin Baan)
  8. Organization: Multihouse Automation, the Netherlands
  9. Date: Tue, 29 Dec 1992 15:59:38 GMT
  10. Lines: 43
  11.  
  12.  
  13. Since I haven't been able to find a working copy of xload (for SLS
  14. .99) I tried to get it working myself. I'm not sure all I did is
  15. correct, but I did get xload to display things that look right to me.
  16.  
  17. This is what I did:
  18.  
  19. I downloaded pub/linux/packages/banjo-incoming/xmem.tar.Z and
  20. pub/linux/sources/usr.bin.X11/xload.tar.Z from tsx-11.
  21.  
  22. I added psdata.c and psdata.h from xmem.tar.Z to the files from
  23. xload.tar.Z.
  24.  
  25. I added the next line to get_load.c:
  26.     #include <linux/sched.h>
  27.  
  28. changed the literal "_averunnable" in function InitLoadPoint in
  29. get_load.c to "_avenrun".
  30.  
  31. added psdata.c and psdata.h to Imakefile:
  32.     SRCS = xload.c get_load.c psdata.c
  33.     OBJS = xload.o get_load.o psdata.o
  34.  
  35. after that:
  36.  
  37. xmkmf
  38. make depend
  39. make
  40.  
  41. and it works!
  42.  
  43. Note: I didn't use the macro CALC_LOAD as defined in sched.h, although
  44. I'm sure it is intended for this kind of programs...
  45.  
  46.  
  47.  
  48.  
  49.  
  50. -- 
  51. Martin Baan                      bbm@mh.nl via internet backbones
  52. Multihouse Automatisering B.V.              uucp: ..!{uunet,sun4nl}!mh.nl!bbm
  53. Doesburgweg 7, 2803 PL Gouda, The Netherlands phone/fax: +31 1820 62911/62500
  54.  
  55.