home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part01
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 78 0a 46 72 6f 6d 3a |.sources|.x.From:|
|00000020| 20 6d 61 73 74 65 72 40 | 72 61 68 75 6c 2e 6e 65 | master@|rahul.ne|
|00000030| 74 20 28 4d 61 72 6b 20 | 57 65 64 65 6c 29 0a 53 |t (Mark |Wedel).S|
|00000040| 75 62 6a 65 63 74 3a 20 | 76 32 31 69 30 34 35 3a |ubject: |v21i045:|
|00000050| 20 20 78 73 79 73 73 74 | 61 74 73 32 20 2d 20 41 | xsysst|ats2 - A|
|00000060| 20 70 61 72 74 69 61 6c | 20 70 65 72 66 6d 65 74 | partial| perfmet|
|00000070| 65 72 20 63 6c 6f 6e 65 | 2c 20 50 61 72 74 30 31 |er clone|, Part01|
|00000080| 2f 30 31 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |/01.Mess|age-ID: |
|00000090| 3c 31 39 39 33 4e 6f 76 | 32 33 2e 31 36 33 33 32 |<1993Nov|23.16332|
|000000a0| 35 2e 31 35 32 34 36 40 | 73 70 61 72 6b 79 2e 73 |5.15246@|sparky.s|
|000000b0| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 3e 0a 58 2d 4d |terling.|com>.X-M|
|000000c0| 64 34 2d 53 69 67 6e 61 | 74 75 72 65 3a 20 62 37 |d4-Signa|ture: b7|
|000000d0| 36 64 39 33 61 36 39 30 | 65 31 63 66 36 37 66 63 |6d93a690|e1cf67fc|
|000000e0| 65 30 33 37 30 30 36 31 | 31 33 33 30 65 36 0a 53 |e0370061|1330e6.S|
|000000f0| 65 6e 64 65 72 3a 20 63 | 68 72 69 73 40 73 70 61 |ender: c|hris@spa|
|00000100| 72 6b 79 2e 73 74 65 72 | 6c 69 6e 67 2e 63 6f 6d |rky.ster|ling.com|
|00000110| 20 28 43 68 72 69 73 20 | 4f 6c 73 6f 6e 29 0a 4f | (Chris |Olson).O|
|00000120| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 53 74 65 |rganizat|ion: Ste|
|00000130| 72 6c 69 6e 67 20 53 6f | 66 74 77 61 72 65 0a 44 |rling So|ftware.D|
|00000140| 61 74 65 3a 20 54 75 65 | 2c 20 32 33 20 4e 6f 76 |ate: Tue|, 23 Nov|
|00000150| 20 31 39 39 33 20 31 36 | 3a 33 33 3a 32 35 20 47 | 1993 16|:33:25 G|
|00000160| 4d 54 0a 41 70 70 72 6f | 76 65 64 3a 20 63 68 72 |MT.Appro|ved: chr|
|00000170| 69 73 40 73 74 65 72 6c | 69 6e 67 2e 63 6f 6d 0a |is@sterl|ing.com.|
|00000180| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 6d |.Submitt|ed-by: m|
|00000190| 61 73 74 65 72 40 72 61 | 68 75 6c 2e 6e 65 74 20 |aster@ra|hul.net |
|000001a0| 28 4d 61 72 6b 20 57 65 | 64 65 6c 29 0a 50 6f 73 |(Mark We|del).Pos|
|000001b0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000001c0| 75 6d 65 20 32 31 2c 20 | 49 73 73 75 65 20 34 35 |ume 21, |Issue 45|
|000001d0| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 78 |.Archive|-name: x|
|000001e0| 73 79 73 73 74 61 74 73 | 32 2f 70 61 72 74 30 31 |sysstats|2/part01|
|000001f0| 0a 45 6e 76 69 72 6f 6e | 6d 65 6e 74 3a 20 58 31 |.Environ|ment: X1|
|00000200| 31 2c 20 41 4e 53 49 0a | 53 75 70 65 72 73 65 64 |1, ANSI.|Supersed|
|00000210| 65 73 3a 20 78 73 79 73 | 73 74 61 74 73 3a 20 56 |es: xsys|stats: V|
|00000220| 6f 6c 75 6d 65 20 32 31 | 2c 20 49 73 73 75 65 20 |olume 21|, Issue |
|00000230| 31 31 0a 0a 0a 58 53 79 | 73 53 74 61 74 73 20 69 |11...XSy|sStats i|
|00000240| 73 20 61 20 73 79 73 74 | 65 6d 20 69 6e 66 6f 72 |s a syst|em infor|
|00000250| 6d 61 74 69 6f 6e 20 64 | 69 73 70 6c 61 79 20 74 |mation d|isplay t|
|00000260| 6f 6f 6c 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 70 |ool simi|lar to p|
|00000270| 65 72 66 6d 65 74 65 72 | 2e 20 20 49 74 0a 64 69 |erfmeter|. It.di|
|00000280| 73 70 6c 61 79 73 20 69 | 74 73 20 69 6e 66 6f 72 |splays i|ts infor|
|00000290| 6d 61 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 66 6f |mation i|n the fo|
|000002a0| 72 6d 20 6f 66 20 61 20 | 73 74 72 69 70 20 63 68 |rm of a |strip ch|
|000002b0| 61 72 74 2e 20 20 49 74 | 20 63 61 6e 20 61 6c 73 |art. It| can als|
|000002c0| 6f 20 64 69 73 70 6c 61 | 79 0a 69 6e 66 6f 72 6d |o displa|y.inform|
|000002d0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 72 65 6d 6f |ation ab|out remo|
|000002e0| 74 65 20 68 6f 73 74 73 | 2c 20 61 73 20 70 65 72 |te hosts|, as per|
|000002f0| 66 6d 65 74 65 72 20 63 | 61 6e 20 64 6f 2e 0a 0a |fmeter c|an do...|
|00000300| 58 53 79 73 53 74 61 74 | 73 20 63 61 6e 20 64 69 |XSysStat|s can di|
|00000310| 73 70 6c 61 79 20 61 6e | 79 20 6e 75 6d 62 65 72 |splay an|y number|
|00000320| 20 6f 66 20 67 72 61 70 | 68 73 20 61 74 20 6f 6e | of grap|hs at on|
|00000330| 65 20 74 69 6d 65 20 69 | 6e 20 74 68 65 20 73 61 |e time i|n the sa|
|00000340| 6d 65 20 77 69 6e 64 6f | 77 2e 0a 49 6e 66 6f 72 |me windo|w..Infor|
|00000350| 6d 61 74 69 6f 6e 20 62 | 65 69 6e 67 20 64 69 73 |mation b|eing dis|
|00000360| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 77 69 |played i|n the wi|
|00000370| 6e 64 6f 77 20 6e 65 65 | 64 20 6e 6f 74 20 62 65 |ndow nee|d not be|
|00000380| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 73 61 6d 65 | all of |the same|
|00000390| 20 68 6f 73 74 2e 0a 46 | 6f 72 20 65 78 61 6d 70 | host..F|or examp|
|000003a0| 6c 65 2c 20 79 6f 75 20 | 63 6f 75 6c 64 20 68 61 |le, you |could ha|
|000003b0| 76 65 20 69 74 20 64 69 | 73 70 6c 61 79 20 74 68 |ve it di|splay th|
|000003c0| 65 20 70 65 72 63 65 6e | 74 61 67 65 20 6f 66 20 |e percen|tage of |
|000003d0| 63 70 75 20 62 65 69 6e | 67 20 75 74 69 6c 69 7a |cpu bein|g utiliz|
|000003e0| 65 64 0a 6f 66 20 68 61 | 6c 66 20 61 20 64 6f 7a |ed.of ha|lf a doz|
|000003f0| 65 6e 20 28 6f 72 20 6d | 6f 72 65 29 20 64 69 66 |en (or m|ore) dif|
|00000400| 66 65 72 65 6e 74 20 68 | 6f 73 74 73 2e 0a 0a 41 |ferent h|osts...A|
|00000410| 73 20 6f 66 20 74 68 69 | 73 20 77 72 69 74 69 6e |s of thi|s writin|
|00000420| 67 2c 20 74 68 65 20 6f | 6e 6c 79 20 73 79 73 74 |g, the o|nly syst|
|00000430| 65 6d 20 74 68 69 73 20 | 68 61 73 20 62 65 65 6e |em this |has been|
|00000440| 20 74 65 73 74 65 64 20 | 6f 6e 20 69 73 20 61 20 | tested |on is a |
|00000450| 53 75 6e 20 33 2f 36 30 | 0a 72 75 6e 6e 69 6e 67 |Sun 3/60|.running|
|00000460| 20 53 75 6e 4f 73 20 34 | 2e 31 2e 31 20 61 6e 64 | SunOs 4|.1.1 and|
|00000470| 20 58 31 31 52 35 2e 20 | 20 49 74 20 73 68 6f 75 | X11R5. | It shou|
|00000480| 6c 64 20 72 75 6e 20 6f | 6e 20 6d 6f 73 74 20 61 |ld run o|n most a|
|00000490| 6e 79 20 73 75 6e 20 77 | 69 74 68 20 53 75 6e 4f |ny sun w|ith SunO|
|000004a0| 73 0a 34 2e 31 2e 31 2e | 20 20 46 6f 72 20 6f 74 |s.4.1.1.| For ot|
|000004b0| 68 65 72 20 73 79 73 74 | 65 6d 73 2c 20 73 6f 6d |her syst|ems, som|
|000004c0| 65 20 70 6f 72 74 69 6e | 67 20 6d 61 79 20 62 65 |e portin|g may be|
|000004d0| 20 72 65 71 75 69 72 65 | 64 20 66 6f 72 20 69 74 | require|d for it|
|000004e0| 20 74 6f 20 77 6f 72 6b | 2e 0a 58 53 79 73 53 74 | to work|..XSysSt|
|000004f0| 61 74 73 20 75 73 65 20 | 74 68 65 20 27 72 73 74 |ats use |the 'rst|
|00000500| 61 74 27 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |at' func|tion to |
|00000510| 67 65 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |get info|rmation.|
|00000520| 20 20 54 68 69 73 20 70 | 72 6f 62 61 62 6c 79 0a | This p|robably.|
|00000530| 64 6f 65 73 20 6e 6f 74 | 20 65 78 69 73 74 20 6f |does not| exist o|
|00000540| 6e 20 61 6c 6c 20 6d 61 | 63 68 69 6e 65 73 2c 20 |n all ma|chines, |
|00000550| 61 6e 64 20 74 68 65 20 | 73 74 72 75 63 74 75 72 |and the |structur|
|00000560| 65 20 69 74 20 75 73 65 | 73 20 6d 61 79 20 76 61 |e it use|s may va|
|00000570| 72 79 0a 62 65 74 77 65 | 65 6e 20 64 69 66 66 65 |ry.betwe|en diffe|
|00000580| 72 65 6e 74 20 6d 61 63 | 68 69 6e 65 73 2e 20 20 |rent mac|hines. |
|00000590| 53 65 65 20 74 68 65 20 | 50 4f 52 54 49 4e 47 20 |See the |PORTING |
|000005a0| 66 69 6c 65 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |file for| more in|
|000005b0| 66 6f 72 6d 61 74 69 6f | 6e 0a 6f 6e 20 68 6f 77 |formatio|n.on how|
|000005c0| 20 74 6f 20 70 6f 72 74 | 20 74 6f 20 64 69 66 66 | to port| to diff|
|000005d0| 65 72 65 6e 74 20 73 79 | 73 74 65 6d 73 2e 0a 0a |erent sy|stems...|
|000005e0| 58 53 79 73 53 74 61 74 | 73 20 72 65 71 75 69 72 |XSysStat|s requir|
|000005f0| 65 20 61 6e 20 41 4e 53 | 49 20 63 61 70 61 62 6c |e an ANS|I capabl|
|00000600| 65 20 63 6f 6d 70 69 6c | 65 72 2e 20 20 47 63 63 |e compil|er. Gcc|
|00000610| 20 77 6f 72 6b 73 20 66 | 69 6e 65 2c 20 61 6e 64 | works f|ine, and|
|00000620| 0a 53 75 6e 27 73 20 61 | 63 63 20 61 6c 73 6f 20 |.Sun's a|cc also |
|00000630| 77 6f 72 6b 20 28 62 75 | 74 20 6d 61 79 20 72 65 |work (bu|t may re|
|00000640| 73 75 6c 74 20 69 6e 20 | 77 61 72 6e 69 6e 67 73 |sult in |warnings|
|00000650| 20 61 74 20 63 6f 6d 70 | 69 6c 65 20 74 69 6d 65 | at comp|ile time|
|00000660| 2e 29 0a 0a 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |.)...#! |/bin/sh.|
|00000670| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|00000680| 6c 20 61 72 63 68 69 76 | 65 2e 20 20 52 65 6d 6f |l archiv|e. Remo|
|00000690| 76 65 20 61 6e 79 74 68 | 69 6e 67 20 62 65 66 6f |ve anyth|ing befo|
|000006a0| 72 65 20 74 68 69 73 20 | 6c 69 6e 65 2c 20 74 68 |re this |line, th|
|000006b0| 65 6e 20 75 6e 70 61 63 | 6b 0a 23 20 69 74 20 62 |en unpac|k.# it b|
|000006c0| 79 20 73 61 76 69 6e 67 | 20 69 74 20 69 6e 74 6f |y saving| it into|
|000006d0| 20 61 20 66 69 6c 65 20 | 61 6e 64 20 74 79 70 69 | a file |and typi|
|000006e0| 6e 67 20 22 73 68 20 66 | 69 6c 65 22 2e 20 20 54 |ng "sh f|ile". T|
|000006f0| 6f 20 6f 76 65 72 77 72 | 69 74 65 20 65 78 69 73 |o overwr|ite exis|
|00000700| 74 69 6e 67 0a 23 20 66 | 69 6c 65 73 2c 20 74 79 |ting.# f|iles, ty|
|00000710| 70 65 20 22 73 68 20 66 | 69 6c 65 20 2d 63 22 2e |pe "sh f|ile -c".|
|00000720| 20 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 66 | You ca|n also f|
|00000730| 65 65 64 20 74 68 69 73 | 20 61 73 20 73 74 61 6e |eed this| as stan|
|00000740| 64 61 72 64 20 69 6e 70 | 75 74 20 76 69 61 0a 23 |dard inp|ut via.#|
|00000750| 20 75 6e 73 68 61 72 2c | 20 6f 72 20 62 79 20 74 | unshar,| or by t|
|00000760| 79 70 69 6e 67 20 22 73 | 68 20 3c 66 69 6c 65 22 |yping "s|h <file"|
|00000770| 2c 20 65 2e 67 2e 2e 20 | 20 49 66 20 74 68 69 73 |, e.g.. | If this|
|00000780| 20 61 72 63 68 69 76 65 | 20 69 73 20 63 6f 6d 70 | archive| is comp|
|00000790| 6c 65 74 65 2c 20 79 6f | 75 0a 23 20 77 69 6c 6c |lete, yo|u.# will|
|000007a0| 20 73 65 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | see the| followi|
|000007b0| 6e 67 20 6d 65 73 73 61 | 67 65 20 61 74 20 74 68 |ng messa|ge at th|
|000007c0| 65 20 65 6e 64 3a 0a 23 | 09 09 22 45 6e 64 20 6f |e end:.#|.."End o|
|000007d0| 66 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |f shell |archive.|
|000007e0| 22 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 43 |".# Cont|ents: C|
|000007f0| 48 41 4e 47 45 53 20 49 | 6d 61 6b 65 66 69 6c 65 |HANGES I|makefile|
|00000800| 20 4d 61 6b 65 66 69 6c | 65 2e 6e 6f 49 6d 20 50 | Makefil|e.noIm P|
|00000810| 4f 52 54 49 4e 47 20 52 | 45 41 44 4d 45 20 54 4f |ORTING R|EADME TO|
|00000820| 44 4f 0a 23 20 20 20 68 | 65 61 64 65 72 73 2e 68 |DO.# h|eaders.h|
|00000830| 20 70 61 74 63 68 6c 65 | 76 65 6c 2e 68 20 70 6f | patchle|vel.h po|
|00000840| 72 74 69 6e 67 2e 63 20 | 78 73 79 73 73 74 61 74 |rting.c |xsysstat|
|00000850| 73 2e 63 20 78 73 79 73 | 73 74 61 74 73 2e 68 0a |s.c xsys|stats.h.|
|00000860| 23 20 20 20 78 73 79 73 | 73 74 61 74 73 2e 6d 61 |# xsys|stats.ma|
|00000870| 6e 0a 23 20 57 72 61 70 | 70 65 64 20 62 79 20 6d |n.# Wrap|ped by m|
|00000880| 61 73 74 65 72 40 73 6c | 65 69 70 6e 65 72 20 6f |aster@sl|eipner o|
|00000890| 6e 20 57 65 64 20 4f 63 | 74 20 32 37 20 31 37 3a |n Wed Oc|t 27 17:|
|000008a0| 35 30 3a 35 35 20 31 39 | 39 33 0a 50 41 54 48 3d |50:55 19|93.PATH=|
|000008b0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|000008c0| 73 72 2f 75 63 62 20 3b | 20 65 78 70 6f 72 74 20 |sr/ucb ;| export |
|000008d0| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|000008e0| 27 43 48 41 4e 47 45 53 | 27 20 2d 61 20 22 24 7b |'CHANGES|' -a "${|
|000008f0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000900| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000910| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000920| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000930| 5c 22 27 43 48 41 4e 47 | 45 53 27 5c 22 0a 65 6c |\"'CHANG|ES'\".el|
|00000940| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00000950| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 43 48 41 4e |tracting| \"'CHAN|
|00000960| 47 45 53 27 5c 22 20 5c | 28 31 38 31 37 20 63 68 |GES'\" \|(1817 ch|
|00000970| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00000980| 73 2f 5e 58 2f 2f 22 20 | 3e 27 43 48 41 4e 47 45 |s/^X//" |>'CHANGE|
|00000990| 53 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |S' <<'EN|D_OF_FIL|
|000009a0| 45 27 0a 58 43 68 61 6e | 67 65 73 20 66 72 6f 6d |E'.XChan|ges from|
|000009b0| 20 31 2e 31 30 20 74 6f | 20 31 2e 31 31 0a 58 20 | 1.10 to| 1.11.X |
|000009c0| 20 20 20 4e 6f 77 20 68 | 61 6e 64 6c 65 73 20 4d | Now h|andles M|
|000009d0| 61 70 70 69 6e 67 4e 6f | 74 69 66 79 20 65 76 65 |appingNo|tify eve|
|000009e0| 6e 74 73 2e 0a 58 20 20 | 20 20 2d 67 65 6f 6d 65 |nts..X | -geome|
|000009f0| 74 72 79 20 66 6c 61 67 | 20 6e 6f 77 20 77 6f 72 |try flag| now wor|
|00000a00| 6b 73 20 70 72 6f 70 65 | 72 6c 79 20 77 69 74 68 |ks prope|rly with|
|00000a10| 20 6e 65 67 61 74 69 76 | 65 20 58 20 6f 72 20 59 | negativ|e X or Y|
|00000a20| 20 70 6f 73 69 74 69 6f | 6e 73 0a 58 09 61 6e 64 | positio|ns.X.and|
|00000a30| 20 6e 6f 6e 20 64 65 66 | 61 75 6c 74 20 73 69 7a | non def|ault siz|
|00000a40| 65 64 20 77 69 6e 64 6f | 77 2e 0a 58 0a 58 0a 58 |ed windo|w..X.X.X|
|00000a50| 43 68 61 6e 67 65 73 20 | 66 72 6f 6d 20 31 2e 30 |Changes |from 1.0|
|00000a60| 31 20 74 6f 20 31 2e 31 | 30 0a 58 20 20 20 20 41 |1 to 1.1|0.X A|
|00000a70| 6c 6c 20 6d 61 6c 6c 6f | 63 20 63 61 6c 6c 73 20 |ll mallo|c calls |
|00000a80| 61 72 65 20 6e 6f 77 20 | 63 61 73 74 20 74 6f 20 |are now |cast to |
|00000a90| 70 72 65 76 65 6e 74 20 | 77 61 72 6e 69 6e 67 73 |prevent |warnings|
|00000aa0| 20 77 69 74 68 20 61 63 | 63 2e 0a 58 20 20 20 20 | with ac|c..X |
|00000ab0| 57 69 64 74 68 20 61 6e | 64 20 48 65 69 67 68 74 |Width an|d Height|
|00000ac0| 20 70 61 72 61 6d 65 74 | 65 73 20 74 6f 20 58 50 | paramet|es to XP|
|00000ad0| 61 72 73 65 47 65 6f 6d | 65 74 72 79 20 6e 6f 77 |arseGeom|etry now|
|00000ae0| 20 63 61 73 74 20 74 6f | 20 70 72 65 76 65 6e 74 | cast to| prevent|
|00000af0| 0a 58 09 77 61 72 6e 69 | 6e 67 73 20 77 69 74 68 |.X.warni|ngs with|
|00000b00| 20 61 63 63 2e 0a 58 20 | 20 20 20 53 63 61 6c 65 | acc..X | Scale|
|00000b10| 20 69 73 20 6e 6f 77 20 | 64 69 73 70 6c 61 79 65 | is now |displaye|
|00000b20| 64 20 70 72 6f 70 65 72 | 6c 79 20 77 68 65 6e 20 |d proper|ly when |
|00000b30| 64 69 73 70 6c 61 79 69 | 6e 67 20 6c 6f 61 64 2e |displayi|ng load.|
|00000b40| 20 20 42 65 66 6f 72 65 | 2c 20 74 68 65 0a 58 09 | Before|, the.X.|
|00000b50| 67 72 61 70 68 20 77 61 | 73 20 61 63 63 75 72 61 |graph wa|s accura|
|00000b60| 74 65 2c 20 62 75 74 20 | 74 68 65 20 73 63 61 6c |te, but |the scal|
|00000b70| 65 20 77 61 73 20 68 69 | 67 68 2e 20 28 54 68 61 |e was hi|gh. (Tha|
|00000b80| 6e 6b 73 20 66 6f 72 20 | 70 61 74 63 68 0a 58 09 |nks for |patch.X.|
|00000b90| 66 72 6f 6d 20 47 76 72 | 61 6e 20 4c 61 72 73 73 |from Gvr|an Larss|
|00000ba0| 6f 6e 20 28 68 6f 68 40 | 6c 6f 72 65 6c 65 69 2e |on (hoh@|lorelei.|
|00000bb0| 61 70 70 72 6f 76 65 2e | 73 65 29 0a 58 20 20 20 |approve.|se).X |
|00000bc0| 20 43 68 61 6e 67 65 64 | 20 63 6f 64 65 20 74 6f | Changed| code to|
|00000bd0| 20 68 61 6e 64 6c 65 20 | 74 68 65 20 70 6f 73 73 | handle |the poss|
|00000be0| 69 62 69 6c 69 74 79 20 | 69 6e 74 65 72 72 75 70 |ibility |interrup|
|00000bf0| 74 20 74 6f 74 61 6c 20 | 62 65 69 6e 67 20 6c 65 |t total |being le|
|00000c00| 73 73 20 74 68 61 6e 0a | 58 09 74 68 65 20 70 72 |ss than.|X.the pr|
|00000c10| 65 76 69 6f 75 73 6c 79 | 20 72 65 70 6f 72 74 65 |eviously| reporte|
|00000c20| 64 20 76 61 6c 75 65 2e | 20 20 50 72 65 76 69 6f |d value.| Previo|
|00000c30| 75 73 6c 79 2c 20 77 68 | 65 6e 20 74 68 69 73 20 |usly, wh|en this |
|00000c40| 68 61 70 70 65 6e 65 64 | 2c 0a 58 09 58 53 79 73 |happened|,.X.XSys|
|00000c50| 53 74 61 74 73 20 67 6f | 74 20 69 6e 74 6f 20 61 |Stats go|t into a|
|00000c60| 6e 20 69 6e 66 69 6e 69 | 74 65 20 6c 6f 6f 70 2e |n infini|te loop.|
|00000c70| 0a 58 20 20 20 20 58 43 | 4f 4d 4d 20 6c 69 6e 65 |.X XC|OMM line|
|00000c80| 20 72 65 6d 6f 76 65 64 | 20 66 72 6f 6d 20 49 6d | removed| from Im|
|00000c90| 61 6b 65 66 69 6c 65 0a | 58 20 20 20 20 57 69 6e |akefile.|X Win|
|00000ca0| 64 6f 77 20 74 79 70 65 | 20 6e 6f 77 20 72 65 71 |dow type| now req|
|00000cb0| 75 65 73 74 73 20 61 20 | 62 61 63 6b 69 6e 67 20 |uests a |backing |
|00000cc0| 73 74 6f 72 65 2e 20 20 | 54 68 69 73 20 66 69 78 |store. |This fix|
|00000cd0| 65 73 20 61 20 64 69 73 | 70 6c 61 79 20 70 72 6f |es a dis|play pro|
|00000ce0| 62 6c 65 6d 0a 58 09 69 | 66 20 74 68 65 20 72 69 |blem.X.i|f the ri|
|00000cf0| 67 68 74 20 73 69 64 65 | 20 6f 66 20 74 68 65 20 |ght side| of the |
|00000d00| 77 69 6e 64 6f 77 20 69 | 73 20 6f 62 73 63 75 72 |window i|s obscur|
|00000d10| 65 64 2e 0a 58 20 20 20 | 20 2d 61 6c 6c 6e 61 6d |ed..X | -allnam|
|00000d20| 65 73 20 61 72 67 75 65 | 6d 65 6e 74 20 61 64 64 |es argue|ment add|
|00000d30| 65 64 20 74 6f 20 66 6f | 72 63 65 20 64 69 73 70 |ed to fo|rce disp|
|00000d40| 6c 61 79 20 6f 66 20 61 | 6c 6c 20 68 6f 73 74 20 |lay of a|ll host |
|00000d50| 6e 61 6d 65 73 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |names, i|ncluding|
|00000d60| 0a 58 09 74 68 65 20 6c | 6f 63 61 6c 20 68 6f 73 |.X.the l|ocal hos|
|00000d70| 74 2e 0a 58 20 20 20 20 | 2d 73 61 6d 65 5f 73 63 |t..X |-same_sc|
|00000d80| 61 6c 65 20 61 72 67 75 | 65 6d 65 6e 74 20 61 64 |ale argu|ement ad|
|00000d90| 64 65 64 20 74 6f 20 66 | 6f 72 63 65 20 67 72 61 |ded to f|orce gra|
|00000da0| 70 68 73 20 6f 66 20 74 | 68 65 20 73 61 6d 65 20 |phs of t|he same |
|00000db0| 74 79 70 65 20 74 6f 20 | 62 65 0a 58 09 64 69 73 |type to |be.X.dis|
|00000dc0| 70 6c 61 79 65 64 20 77 | 69 74 68 20 74 68 65 20 |played w|ith the |
|00000dd0| 73 61 6d 65 20 73 63 61 | 6c 65 2e 0a 58 20 20 20 |same sca|le..X |
|00000de0| 20 67 72 61 70 68 20 74 | 79 70 65 20 6c 6f 61 64 | graph t|ype load|
|00000df0| 20 68 61 73 20 62 65 65 | 6e 20 72 65 6e 61 6d 65 | has bee|n rename|
|00000e00| 64 20 74 6f 20 6c 6f 61 | 64 31 2e 20 20 47 72 61 |d to loa|d1. Gra|
|00000e10| 70 68 20 74 79 70 65 20 | 6c 6f 61 64 35 20 61 6e |ph type |load5 an|
|00000e20| 64 20 6c 6f 61 64 31 35 | 0a 58 09 68 61 76 65 20 |d load15|.X.have |
|00000e30| 62 65 65 6e 20 61 64 64 | 65 64 2e 20 20 6c 6f 61 |been add|ed. loa|
|00000e40| 64 31 20 63 6f 72 72 65 | 73 70 6f 6e 64 73 20 74 |d1 corre|sponds t|
|00000e50| 6f 20 6c 6f 61 64 20 61 | 76 65 72 61 67 65 20 66 |o load a|verage f|
|00000e60| 6f 72 20 6c 61 73 74 20 | 6d 69 6e 75 74 65 2c 0a |or last |minute,.|
|00000e70| 58 09 6c 6f 61 64 35 20 | 66 6f 72 20 6c 61 73 74 |X.load5 |for last|
|00000e80| 20 35 20 6d 69 6e 75 74 | 65 73 2c 20 61 6e 64 20 | 5 minut|es, and |
|00000e90| 6c 6f 61 64 31 35 20 66 | 6f 72 20 6c 61 73 74 20 |load15 f|or last |
|00000ea0| 31 35 20 6d 69 6e 75 74 | 65 73 2e 0a 58 20 20 20 |15 minut|es..X |
|00000eb0| 20 2d 68 69 64 65 6c 61 | 62 65 6c 73 20 6f 70 74 | -hidela|bels opt|
|00000ec0| 69 6f 6e 20 61 64 64 65 | 64 20 74 6f 20 70 72 65 |ion adde|d to pre|
|00000ed0| 76 65 6e 74 20 6c 61 62 | 65 6c 73 20 77 69 74 68 |vent lab|els with|
|00000ee0| 20 73 63 61 6c 65 20 66 | 72 6f 6d 20 62 65 69 6e | scale f|rom bein|
|00000ef0| 67 0a 58 09 64 72 61 77 | 6e 20 61 74 20 62 6f 74 |g.X.draw|n at bot|
|00000f00| 74 6f 6d 20 6f 66 20 73 | 63 72 65 65 6e 2e 20 20 |tom of s|creen. |
|00000f10| 4c 61 62 65 6c 20 64 69 | 73 70 6c 61 79 20 63 61 |Label di|splay ca|
|00000f20| 6e 20 61 6c 73 6f 20 62 | 65 20 74 6f 67 67 6c 65 |n also b|e toggle|
|00000f30| 64 0a 58 09 62 79 20 70 | 72 65 73 73 69 6e 67 20 |d.X.by p|ressing |
|00000f40| 27 6c 27 20 69 6e 20 74 | 68 65 20 58 53 79 73 53 |'l' in t|he XSysS|
|00000f50| 74 61 74 73 20 77 69 6e | 64 6f 77 2e 0a 58 20 20 |tats win|dow..X |
|00000f60| 20 20 66 69 78 65 64 20 | 6d 69 6e 6f 72 20 62 75 | fixed |minor bu|
|00000f70| 67 20 74 68 61 74 20 77 | 6f 75 6c 64 20 63 61 75 |g that w|ould cau|
|00000f80| 73 65 20 64 6f 75 62 6c | 65 20 74 68 69 63 6b 20 |se doubl|e thick |
|00000f90| 6c 69 6e 65 73 20 74 6f | 20 62 65 20 64 72 61 77 |lines to| be draw|
|00000fa0| 6e 20 61 74 0a 58 09 74 | 69 6d 65 73 20 77 68 65 |n at.X.t|imes whe|
|00000fb0| 6e 20 61 20 67 72 61 70 | 68 20 63 68 61 6e 67 65 |n a grap|h change|
|00000fc0| 64 20 73 63 61 6c 65 2e | 0a 58 20 20 20 20 66 69 |d scale.|.X fi|
|00000fd0| 78 65 64 20 62 75 67 20 | 69 6e 20 77 68 69 63 68 |xed bug |in which|
|00000fe0| 20 61 6c 6c 20 74 68 65 | 20 67 72 61 70 68 20 6c | all the| graph l|
|00000ff0| 61 62 65 6c 73 20 77 65 | 72 65 20 6e 6f 74 20 64 |abels we|re not d|
|00001000| 69 73 70 6c 61 79 65 64 | 2e 20 20 54 68 65 0a 58 |isplayed|. The.X|
|00001010| 09 73 69 7a 65 20 6f 66 | 20 74 68 65 20 77 69 6e |.size of| the win|
|00001020| 64 6f 77 20 64 65 74 65 | 72 6d 69 6e 65 64 20 69 |dow dete|rmined i|
|00001030| 66 20 74 68 69 6e 67 73 | 20 77 65 72 65 20 64 69 |f things| were di|
|00001040| 73 70 6c 61 79 65 64 20 | 70 72 6f 70 65 72 6c 79 |splayed |properly|
|00001050| 0a 58 09 6f 72 20 6e 6f | 74 2e 0a 58 20 20 20 20 |.X.or no|t..X |
|00001060| 2d 73 63 61 6c 65 20 61 | 72 67 75 65 6d 65 6e 74 |-scale a|rguement|
|00001070| 20 61 64 64 65 64 20 74 | 6f 20 64 72 61 77 20 64 | added t|o draw d|
|00001080| 6f 74 74 65 64 20 68 6f | 72 69 7a 6f 6e 74 61 6c |otted ho|rizontal|
|00001090| 20 6c 69 6e 65 73 2e 20 | 20 43 61 6e 20 6d 61 6b | lines. | Can mak|
|000010a0| 65 0a 58 09 69 74 20 65 | 61 73 69 65 72 20 74 6f |e.X.it e|asier to|
|000010b0| 20 74 65 6c 6c 20 77 68 | 65 6e 20 61 20 67 72 61 | tell wh|en a gra|
|000010c0| 70 68 20 67 6f 65 73 20 | 62 65 79 6f 6e 64 20 61 |ph goes |beyond a|
|000010d0| 20 63 65 72 74 61 69 6e | 20 76 61 6c 75 65 2e 0a | certain| value..|
|000010e0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000010f0| 65 73 74 20 31 38 31 37 | 20 2d 6e 65 20 60 77 63 |est 1817| -ne `wc|
|00001100| 20 2d 63 20 3c 27 43 48 | 41 4e 47 45 53 27 60 3b | -c <'CH|ANGES'`;|
|00001110| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001120| 68 61 72 3a 20 5c 22 27 | 43 48 41 4e 47 45 53 27 |har: \"'|CHANGES'|
|00001130| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00001140| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00001150| 23 20 65 6e 64 20 6f 66 | 20 27 43 48 41 4e 47 45 |# end of| 'CHANGE|
|00001160| 53 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |S'.fi.if| test -f|
|00001170| 20 27 49 6d 61 6b 65 66 | 69 6c 65 27 20 2d 61 20 | 'Imakef|ile' -a |
|00001180| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00001190| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000011a0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000011b0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000011c0| 6c 65 20 5c 22 27 49 6d | 61 6b 65 66 69 6c 65 27 |le \"'Im|akefile'|
|000011d0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|000011e0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000011f0| 27 49 6d 61 6b 65 66 69 | 6c 65 27 5c 22 20 5c 28 |'Imakefi|le'\" \(|
|00001200| 36 39 37 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |697 char|acters\)|
|00001210| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00001220| 49 6d 61 6b 65 66 69 6c | 65 27 20 3c 3c 27 45 4e |Imakefil|e' <<'EN|
|00001230| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 20 43 |D_OF_FIL|E'.X/* C|
|00001240| 68 61 6e 67 65 20 42 49 | 4e 44 49 52 20 61 6e 64 |hange BI|NDIR and|
|00001250| 20 4d 41 4e 44 49 52 20 | 28 75 6e 63 6f 6d 6d 65 | MANDIR |(uncomme|
|00001260| 6e 74 20 74 68 65 6d 20 | 66 69 72 73 74 29 20 69 |nt them |first) i|
|00001270| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 69 6e |f you wa|nt to in|
|00001280| 73 74 61 6c 6c 0a 58 20 | 2a 20 58 53 79 73 53 74 |stall.X |* XSysSt|
|00001290| 61 74 73 20 6f 74 68 65 | 72 20 74 68 61 6e 20 74 |ats othe|r than t|
|000012a0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 42 49 4e 44 |he stand|ard BIND|
|000012b0| 49 52 20 61 6e 64 20 4d | 41 4e 44 49 52 2c 20 61 |IR and M|ANDIR, a|
|000012c0| 73 20 64 65 66 69 6e 65 | 64 20 62 79 0a 58 20 2a |s define|d by.X *|
|000012d0| 20 58 31 31 2c 20 6f 6e | 20 79 6f 75 72 20 73 79 | X11, on| your sy|
|000012e0| 73 74 65 6d 2e 0a 58 20 | 2a 2f 0a 58 0a 58 2f 2a |stem..X |*/.X.X/*|
|000012f0| 20 58 53 79 73 53 74 61 | 74 73 20 72 65 71 75 69 | XSysSta|ts requi|
|00001300| 72 65 20 61 6e 20 61 6e | 73 69 20 63 61 70 61 62 |re an an|si capab|
|00001310| 6c 65 20 63 6f 6d 70 69 | 6c 65 72 2e 20 20 43 68 |le compi|ler. Ch|
|00001320| 61 6e 67 65 20 61 6e 64 | 20 75 6e 63 6f 6d 6d 65 |ange and| uncomme|
|00001330| 6e 74 20 43 46 4c 41 47 | 53 20 61 6e 64 0a 58 20 |nt CFLAG|S and.X |
|00001340| 2a 20 43 43 20 62 65 6c | 6f 77 20 74 6f 20 6f 76 |* CC bel|ow to ov|
|00001350| 65 72 72 69 64 65 20 64 | 65 66 61 75 6c 74 20 76 |erride d|efault v|
|00001360| 61 6c 75 65 73 20 75 73 | 65 64 20 74 6f 20 63 6f |alues us|ed to co|
|00001370| 6d 70 69 6c 65 20 58 20 | 70 72 6f 67 72 61 6d 73 |mpile X |programs|
|00001380| 20 6f 6e 20 79 6f 75 72 | 0a 58 20 2a 20 73 79 73 | on your|.X * sys|
|00001390| 74 65 6d 20 61 73 20 72 | 65 71 75 69 72 65 64 2e |tem as r|equired.|
|000013a0| 0a 58 20 2a 2f 0a 58 0a | 58 2f 2a 0a 58 43 46 4c |.X */.X.|X/*.XCFL|
|000013b0| 41 47 53 20 3d 20 2d 67 | 0a 58 43 43 20 3d 20 67 |AGS = -g|.XCC = g|
|000013c0| 63 63 20 2d 57 61 6c 6c | 0a 58 2a 2f 0a 58 0a 58 |cc -Wall|.X*/.X.X|
|000013d0| 20 20 20 20 20 20 20 20 | 44 45 50 4c 49 42 53 20 | |DEPLIBS |
|000013e0| 3d 20 24 28 44 45 50 58 | 4c 49 42 29 0a 58 4c 4f |= $(DEPX|LIB).XLO|
|000013f0| 43 41 4c 5f 4c 49 42 52 | 41 52 49 45 53 20 3d 20 |CAL_LIBR|ARIES = |
|00001400| 24 28 58 4c 49 42 29 0a | 58 20 20 20 20 20 20 20 |$(XLIB).|X |
|00001410| 20 20 20 20 53 52 43 53 | 20 3d 20 70 6f 72 74 69 | SRCS| = porti|
|00001420| 6e 67 2e 63 20 78 73 79 | 73 73 74 61 74 73 2e 63 |ng.c xsy|sstats.c|
|00001430| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 4f 42 4a |.X | OBJ|
|00001440| 53 20 3d 20 70 6f 72 74 | 69 6e 67 2e 6f 20 78 73 |S = port|ing.o xs|
|00001450| 79 73 73 74 61 74 73 2e | 6f 0a 58 0a 58 41 6c 6c |ysstats.|o.X.XAll|
|00001460| 54 61 72 67 65 74 28 78 | 73 79 73 73 74 61 74 73 |Target(x|sysstats|
|00001470| 29 0a 58 4e 6f 72 6d 61 | 6c 50 72 6f 67 72 61 6d |).XNorma|lProgram|
|00001480| 54 61 72 67 65 74 28 78 | 73 79 73 73 74 61 74 73 |Target(x|sysstats|
|00001490| 2c 24 28 4f 42 4a 53 29 | 2c 24 28 44 45 50 4c 49 |,$(OBJS)|,$(DEPLI|
|000014a0| 42 53 29 2c 24 28 4c 4f | 43 41 4c 5f 4c 49 42 52 |BS),$(LO|CAL_LIBR|
|000014b0| 41 52 49 45 53 29 2c 2d | 6c 72 70 63 73 76 63 29 |ARIES),-|lrpcsvc)|
|000014c0| 0a 58 49 6e 73 74 61 6c | 6c 50 72 6f 67 72 61 6d |.XInstal|lProgram|
|000014d0| 28 78 73 79 73 73 74 61 | 74 73 2c 24 28 42 49 4e |(xsyssta|ts,$(BIN|
|000014e0| 44 49 52 29 29 0a 58 49 | 6e 73 74 61 6c 6c 4d 61 |DIR)).XI|nstallMa|
|000014f0| 6e 50 61 67 65 28 78 73 | 79 73 73 74 61 74 73 2c |nPage(xs|ysstats,|
|00001500| 20 24 28 4d 41 4e 44 49 | 52 29 29 0a 45 4e 44 5f | $(MANDI|R)).END_|
|00001510| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00001520| 36 39 37 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |697 -ne |`wc -c <|
|00001530| 27 49 6d 61 6b 65 66 69 | 6c 65 27 60 3b 20 74 68 |'Imakefi|le'`; th|
|00001540| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00001550| 3a 20 5c 22 27 49 6d 61 | 6b 65 66 69 6c 65 27 5c |: \"'Ima|kefile'\|
|00001560| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00001570| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00001580| 20 65 6e 64 20 6f 66 20 | 27 49 6d 61 6b 65 66 69 | end of |'Imakefi|
|00001590| 6c 65 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |le'.fi.i|f test -|
|000015a0| 66 20 27 4d 61 6b 65 66 | 69 6c 65 2e 6e 6f 49 6d |f 'Makef|ile.noIm|
|000015b0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000015c0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000015d0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000015e0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000015f0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 4d 61 6b 65 66 |ng file |\"'Makef|
|00001600| 69 6c 65 2e 6e 6f 49 6d | 27 5c 22 0a 65 6c 73 65 |ile.noIm|'\".else|
|00001610| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00001620| 61 63 74 69 6e 67 20 5c | 22 27 4d 61 6b 65 66 69 |acting \|"'Makefi|
|00001630| 6c 65 2e 6e 6f 49 6d 27 | 5c 22 20 5c 28 36 33 31 |le.noIm'|\" \(631|
|00001640| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00001650| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 4d 61 6b |d "s/^X/|/" >'Mak|
|00001660| 65 66 69 6c 65 2e 6e 6f | 49 6d 27 20 3c 3c 27 45 |efile.no|Im' <<'E|
|00001670| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 43 43 20 |ND_OF_FI|LE'.XCC |
|00001680| 3d 20 67 63 63 0a 58 43 | 46 4c 41 47 53 20 3d 20 |= gcc.XC|FLAGS = |
|00001690| 2d 67 20 2d 4f 20 2d 57 | 61 6c 6c 0a 58 4c 44 46 |-g -O -W|all.XLDF|
|000016a0| 4c 41 47 53 20 3d 20 0a | 58 0a 58 53 52 43 53 20 |LAGS = .|X.XSRCS |
|000016b0| 3d 20 78 73 79 73 73 74 | 61 74 73 2e 63 20 70 6f |= xsysst|ats.c po|
|000016c0| 72 74 69 6e 67 2e 63 0a | 58 4f 42 4a 53 20 3d 20 |rting.c.|XOBJS = |
|000016d0| 78 73 79 73 73 74 61 74 | 73 2e 6f 20 70 6f 72 74 |xsysstat|s.o port|
|000016e0| 69 6e 67 2e 6f 0a 58 48 | 44 52 53 20 3d 20 78 73 |ing.o.XH|DRS = xs|
|000016f0| 79 73 73 74 61 74 73 2e | 68 0a 58 0a 58 4c 49 42 |ysstats.|h.X.XLIB|
|00001700| 53 20 3d 20 2d 6c 58 31 | 31 20 2d 6c 72 70 63 73 |S = -lX1|1 -lrpcs|
|00001710| 76 63 0a 58 0a 58 23 20 | 70 72 6f 67 72 61 6d 20 |vc.X.X# |program |
|00001720| 74 6f 20 69 6e 73 74 61 | 6c 6c 20 77 69 74 68 2e |to insta|ll with.|
|00001730| 20 20 63 70 20 77 6f 75 | 6c 64 20 70 72 6f 62 61 | cp wou|ld proba|
|00001740| 62 6c 79 20 77 6f 72 6b | 0a 58 49 4e 53 54 41 4c |bly work|.XINSTAL|
|00001750| 4c 20 3d 20 69 6e 73 74 | 61 6c 6c 0a 58 0a 58 23 |L = inst|all.X.X#|
|00001760| 77 68 65 72 65 20 74 6f | 20 69 6e 73 74 61 6c 6c |where to| install|
|00001770| 20 74 68 65 20 70 72 6f | 67 72 61 6d 0a 58 42 49 | the pro|gram.XBI|
|00001780| 4e 44 49 52 20 3d 20 2f | 75 73 72 2f 62 69 6e 2f |NDIR = /|usr/bin/|
|00001790| 58 31 31 0a 58 0a 58 23 | 77 68 65 72 65 20 74 6f |X11.X.X#|where to|
|000017a0| 20 70 75 74 20 74 68 65 | 20 6d 61 6e 20 70 61 67 | put the| man pag|
|000017b0| 65 2c 20 61 6e 64 20 69 | 74 73 20 65 78 74 65 6e |e, and i|ts exten|
|000017c0| 73 69 6f 6e 0a 58 4d 41 | 4e 44 49 52 20 3d 20 2f |sion.XMA|NDIR = /|
|000017d0| 75 73 72 2f 6c 6f 63 61 | 6c 2f 6d 61 6e 2f 6d 61 |usr/loca|l/man/ma|
|000017e0| 6e 31 0a 58 4d 41 4e 45 | 58 54 20 3d 20 31 0a 58 |n1.XMANE|XT = 1.X|
|000017f0| 0a 58 78 73 79 73 73 74 | 61 74 73 3a 20 24 7b 48 |.Xxsysst|ats: ${H|
|00001800| 44 52 53 7d 20 24 7b 4f | 42 4a 53 7d 20 24 7b 53 |DRS} ${O|BJS} ${S|
|00001810| 52 43 53 7d 0a 58 09 24 | 28 43 43 29 20 24 28 43 |RCS}.X.$|(CC) $(C|
|00001820| 46 4c 41 47 53 29 20 24 | 28 4c 44 46 4c 41 47 53 |FLAGS) $|(LDFLAGS|
|00001830| 29 20 24 7b 4f 42 4a 53 | 7d 20 2d 6f 20 78 73 79 |) ${OBJS|} -o xsy|
|00001840| 73 73 74 61 74 73 20 24 | 7b 4c 49 42 53 7d 20 0a |sstats $|{LIBS} .|
|00001850| 58 0a 58 69 6e 73 74 61 | 6c 6c 3a 0a 58 09 24 28 |X.Xinsta|ll:.X.$(|
|00001860| 49 4e 53 54 41 4c 4c 29 | 20 78 73 79 73 73 74 61 |INSTALL)| xsyssta|
|00001870| 74 73 20 24 7b 42 49 4e | 44 49 52 7d 2f 78 73 79 |ts ${BIN|DIR}/xsy|
|00001880| 73 73 74 61 74 73 0a 58 | 09 24 28 49 4e 53 54 41 |sstats.X|.$(INSTA|
|00001890| 4c 4c 29 20 78 73 79 73 | 73 74 61 74 73 2e 6d 61 |LL) xsys|stats.ma|
|000018a0| 6e 20 24 7b 4d 41 4e 44 | 49 52 7d 2f 78 73 79 73 |n ${MAND|IR}/xsys|
|000018b0| 73 74 61 74 73 2e 24 7b | 4d 41 4e 45 58 54 7d 0a |stats.${|MANEXT}.|
|000018c0| 58 0a 58 64 65 70 65 6e | 64 3a 0a 58 09 6d 61 6b |X.Xdepen|d:.X.mak|
|000018d0| 65 64 65 70 65 6e 64 20 | 2d 2d 20 24 28 53 52 43 |edepend |-- $(SRC|
|000018e0| 53 29 20 2d 2d 20 24 28 | 48 44 52 53 29 0a 58 0a |S) -- $(|HDRS).X.|
|000018f0| 58 63 6c 65 61 6e 3a 0a | 58 09 72 6d 20 2d 66 20 |Xclean:.|X.rm -f |
|00001900| 2a 2e 6f 20 63 6f 72 65 | 20 78 73 79 73 73 74 61 |*.o core| xsyssta|
|00001910| 74 73 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |ts.END_O|F_FILE.i|
|00001920| 66 20 74 65 73 74 20 36 | 33 31 20 2d 6e 65 20 60 |f test 6|31 -ne `|
|00001930| 77 63 20 2d 63 20 3c 27 | 4d 61 6b 65 66 69 6c 65 |wc -c <'|Makefile|
|00001940| 2e 6e 6f 49 6d 27 60 3b | 20 74 68 65 6e 0a 20 20 |.noIm'`;| then. |
|00001950| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00001960| 4d 61 6b 65 66 69 6c 65 | 2e 6e 6f 49 6d 27 5c 22 |Makefile|.noIm'\"|
|00001970| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00001980| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00001990| 65 6e 64 20 6f 66 20 27 | 4d 61 6b 65 66 69 6c 65 |end of '|Makefile|
|000019a0| 2e 6e 6f 49 6d 27 0a 66 | 69 0a 69 66 20 74 65 73 |.noIm'.f|i.if tes|
|000019b0| 74 20 2d 66 20 27 50 4f | 52 54 49 4e 47 27 20 2d |t -f 'PO|RTING' -|
|000019c0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000019d0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000019e0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000019f0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00001a00| 66 69 6c 65 20 5c 22 27 | 50 4f 52 54 49 4e 47 27 |file \"'|PORTING'|
|00001a10| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00001a20| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00001a30| 27 50 4f 52 54 49 4e 47 | 27 5c 22 20 5c 28 33 31 |'PORTING|'\" \(31|
|00001a40| 39 32 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |92 chara|cters\).|
|00001a50| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 50 |sed "s/^|X//" >'P|
|00001a60| 4f 52 54 49 4e 47 27 20 | 3c 3c 27 45 4e 44 5f 4f |ORTING' |<<'END_O|
|00001a70| 46 5f 46 49 4c 45 27 0a | 58 54 68 65 20 64 65 66 |F_FILE'.|XThe def|
|00001a80| 61 75 6c 74 20 76 65 72 | 73 69 6f 6e 20 75 73 65 |ault ver|sion use|
|00001a90| 73 20 74 68 65 20 72 73 | 74 61 74 20 63 61 6c 6c |s the rs|tat call|
|00001aa0| 20 74 6f 20 67 65 74 20 | 69 6e 66 6f 72 6d 61 74 | to get |informat|
|00001ab0| 69 6f 6e 2e 20 20 54 68 | 65 0a 58 66 6f 72 6d 61 |ion. Th|e.Xforma|
|00001ac0| 74 20 6f 66 20 74 68 65 | 20 72 73 74 61 74 20 63 |t of the| rstat c|
|00001ad0| 61 6c 6c 20 69 73 3a 0a | 58 0a 58 72 73 74 61 74 |all is:.|X.Xrstat|
|00001ae0| 28 68 6f 73 74 2c 20 73 | 74 61 74 73 29 0a 58 0a |(host, s|tats).X.|
|00001af0| 58 77 68 65 72 65 20 68 | 6f 73 74 20 69 73 20 61 |Xwhere h|ost is a|
|00001b00| 20 73 74 72 69 6e 67 2c | 20 61 6e 64 20 73 74 61 | string,| and sta|
|00001b10| 74 73 20 69 73 20 61 20 | 70 6f 69 6e 74 65 72 20 |ts is a |pointer |
|00001b20| 74 6f 20 61 20 73 74 61 | 74 73 74 69 6d 65 20 73 |to a sta|tstime s|
|00001b30| 74 72 75 63 74 75 72 65 | 2e 0a 58 0a 58 50 72 6f |tructure|..X.XPro|
|00001b40| 62 61 62 6c 79 20 74 68 | 65 20 65 61 73 69 65 73 |bably th|e easies|
|00001b50| 74 20 77 61 79 20 74 6f | 20 70 6f 72 74 20 74 6f |t way to| port to|
|00001b60| 20 61 20 6e 65 77 20 73 | 79 73 74 65 6d 20 74 68 | a new s|ystem th|
|00001b70| 61 74 20 6c 61 63 6b 73 | 20 72 73 74 61 74 0a 58 |at lacks| rstat.X|
|00001b80| 77 6f 75 6c 64 20 62 65 | 20 74 6f 20 61 20 6e 65 |would be| to a ne|
|00001b90| 77 20 76 65 72 73 69 6f | 6e 20 6f 66 20 72 73 74 |w versio|n of rst|
|00001ba0| 61 74 2e 20 20 49 6e 20 | 74 68 69 73 20 66 69 6c |at. In |this fil|
|00001bb0| 65 2c 20 49 20 74 72 79 | 20 74 6f 20 64 6f 63 75 |e, I try| to docu|
|00001bc0| 6d 65 6e 74 0a 58 74 68 | 65 20 6d 65 6d 62 65 72 |ment.Xth|e member|
|00001bd0| 73 20 6f 66 20 74 68 65 | 20 73 74 61 74 73 74 69 |s of the| statsti|
|00001be0| 6d 65 20 73 74 72 75 63 | 74 75 72 65 2c 20 61 6e |me struc|ture, an|
|00001bf0| 64 20 68 6f 77 20 74 68 | 65 20 70 72 6f 67 72 61 |d how th|e progra|
|00001c00| 6d 20 75 73 65 73 0a 58 | 74 68 65 20 69 6e 66 6f |m uses.X|the info|
|00001c10| 72 6d 61 74 69 6f 6e 2e | 20 20 4e 6f 74 65 20 74 |rmation.| Note t|
|00001c20| 68 61 74 20 67 61 74 68 | 65 72 69 6e 67 20 6f 66 |hat gath|ering of|
|00001c30| 20 74 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | this in|formatio|
|00001c40| 6e 20 74 61 6b 65 73 0a | 58 70 6c 61 63 65 20 69 |n takes.|Xplace i|
|00001c50| 6e 20 74 68 65 20 70 6f | 72 74 69 6e 67 2e 63 20 |n the po|rting.c |
|00001c60| 66 69 6c 65 2e 0a 58 0a | 58 41 66 74 65 72 20 74 |file..X.|XAfter t|
|00001c70| 68 61 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |hat info|rmation |
|00001c80| 69 73 20 67 61 74 68 65 | 72 65 64 20 28 76 69 61 |is gathe|red (via|
|00001c90| 20 72 73 74 61 74 29 2c | 20 69 74 20 69 73 20 74 | rstat),| it is t|
|00001ca0| 68 65 6e 20 70 72 6f 63 | 65 73 73 65 64 2e 0a 58 |hen proc|essed..X|
|00001cb0| 53 69 6e 63 65 20 72 73 | 74 61 74 20 72 65 70 6f |Since rs|tat repo|
|00001cc0| 72 74 73 20 74 68 65 20 | 74 6f 74 61 6c 20 6e 75 |rts the |total nu|
|00001cd0| 6d 62 65 72 20 6f 66 20 | 65 76 65 6e 74 73 20 73 |mber of |events s|
|00001ce0| 69 6e 63 65 20 74 68 65 | 20 73 79 73 74 65 6d 20 |ince the| system |
|00001cf0| 73 74 61 72 74 65 64 0a | 58 75 70 2c 20 74 68 65 |started.|Xup, the|
|00001d00| 20 6e 75 6d 62 65 72 20 | 6f 66 20 65 76 65 6e 74 | number |of event|
|00001d10| 73 20 73 69 6e 63 65 20 | 74 68 65 20 6c 61 73 74 |s since |the last|
|00001d20| 20 74 69 6d 65 20 77 65 | 20 75 70 64 61 74 65 64 | time we| updated|
|00001d30| 20 74 68 65 20 67 72 61 | 70 68 0a 58 69 73 20 74 | the gra|ph.Xis t|
|00001d40| 68 65 20 76 61 6c 75 65 | 20 6a 75 73 74 20 72 65 |he value| just re|
|00001d50| 74 75 72 6e 65 64 20 6d | 69 6e 75 73 20 74 68 65 |turned m|inus the|
|00001d60| 20 76 61 6c 75 65 20 74 | 68 61 74 20 77 61 73 20 | value t|hat was |
|00001d70| 72 65 74 75 72 6e 65 64 | 20 6c 61 73 74 2e 0a 58 |returned| last..X|
|00001d80| 54 68 69 73 20 69 73 20 | 77 68 79 20 74 68 65 72 |This is |why ther|
|00001d90| 65 20 61 72 65 20 74 77 | 6f 20 73 74 61 74 73 74 |e are tw|o statst|
|00001da0| 69 6d 65 20 73 74 72 75 | 63 74 75 72 65 73 20 69 |ime stru|ctures i|
|00001db0| 6e 20 70 6f 72 74 69 6e | 67 2e 63 2e 20 20 41 20 |n portin|g.c. A |
|00001dc0| 76 61 72 69 61 62 6c 65 | 0a 58 28 6e 65 77 5f 73 |variable|.X(new_s|
|00001dd0| 74 61 74 29 20 69 73 20 | 75 73 65 64 20 74 6f 20 |tat) is |used to |
|00001de0| 6b 65 65 70 20 74 72 61 | 63 6b 20 6f 66 20 77 68 |keep tra|ck of wh|
|00001df0| 69 63 68 20 73 74 72 75 | 63 74 75 72 65 20 74 68 |ich stru|cture th|
|00001e00| 65 20 6e 65 77 20 69 6e | 66 6f 72 6d 61 74 69 6f |e new in|formatio|
|00001e10| 6e 0a 58 77 69 6c 6c 20 | 62 65 20 6c 6f 61 64 65 |n.Xwill |be loade|
|00001e20| 64 20 69 6e 74 6f 2e 0a | 58 0a 58 54 68 69 73 20 |d into..|X.XThis |
|00001e30| 64 61 74 61 20 69 73 20 | 74 68 65 6e 20 70 75 74 |data is |then put|
|00001e40| 20 69 6e 74 6f 20 74 68 | 65 20 70 6f 69 6e 74 73 | into th|e points|
|00001e50| 5b 5d 5b 5d 20 61 72 72 | 61 79 2e 20 56 61 6c 75 |[][] arr|ay. Valu|
|00001e60| 65 73 20 73 68 6f 75 6c | 64 20 6e 65 76 65 72 0a |es shoul|d never.|
|00001e70| 58 62 65 20 6c 65 73 73 | 20 74 68 61 6e 20 7a 65 |Xbe less| than ze|
|00001e80| 72 6f 2e 20 20 54 68 65 | 20 76 61 6c 75 65 73 20 |ro. The| values |
|00001e90| 61 72 65 20 69 6e 74 65 | 67 65 72 73 2e 20 20 43 |are inte|gers. C|
|00001ea0| 50 55 20 74 69 6d 65 20 | 62 65 69 6e 67 20 75 73 |PU time |being us|
|00001eb0| 65 64 0a 58 73 68 6f 75 | 6c 64 20 72 61 6e 67 65 |ed.Xshou|ld range|
|00001ec0| 20 66 72 6f 6d 20 30 20 | 74 6f 20 31 30 30 2e 20 | from 0 |to 100. |
|00001ed0| 20 4e 75 6d 62 65 72 20 | 6f 66 20 64 69 73 6b 20 | Number |of disk |
|00001ee0| 74 72 61 6e 73 66 65 72 | 73 20 63 61 6e 20 62 65 |transfer|s can be|
|00001ef0| 20 61 6e 79 74 68 69 6e | 67 0a 58 61 62 6f 76 65 | anythin|g.Xabove|
|00001f00| 20 7a 65 72 6f 2e 0a 58 | 0a 58 58 53 79 73 53 74 | zero..X|.XXSysSt|
|00001f10| 61 74 73 20 61 76 65 72 | 61 67 65 73 20 6d 6f 73 |ats aver|ages mos|
|00001f20| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 70 65 |t inform|ation pe|
|00001f30| 72 20 73 65 63 6f 6e 64 | 2e 20 20 54 68 69 73 20 |r second|. This |
|00001f40| 6d 65 61 6e 73 20 74 68 | 61 74 20 69 66 20 74 68 |means th|at if th|
|00001f50| 65 0a 58 75 70 64 61 74 | 65 20 74 69 6d 65 20 69 |e.Xupdat|e time i|
|00001f60| 73 20 65 76 65 72 79 20 | 35 20 73 65 63 6f 6e 64 |s every |5 second|
|00001f70| 73 2c 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |s, the n|umber of|
|00001f80| 20 65 76 65 6e 74 73 20 | 73 69 6e 63 65 20 74 68 | events |since th|
|00001f90| 65 20 6c 61 73 74 0a 58 | 67 72 61 70 68 20 77 69 |e last.X|graph wi|
|00001fa0| 6c 6c 20 62 65 20 64 69 | 76 69 64 65 64 20 62 79 |ll be di|vided by|
|00001fb0| 20 35 20 62 65 66 6f 72 | 65 2e 0a 58 0a 58 53 54 | 5 befor|e..X.XST|
|00001fc0| 41 54 53 54 49 4d 45 20 | 53 54 52 55 43 54 55 52 |ATSTIME |STRUCTUR|
|00001fd0| 45 3a 0a 58 0a 58 73 74 | 61 74 73 2e 63 70 5f 74 |E:.X.Xst|ats.cp_t|
|00001fe0| 69 6d 65 5b 30 5d 09 75 | 73 65 72 20 74 69 6d 65 |ime[0].u|ser time|
|00001ff0| 0a 58 73 74 61 74 73 2e | 63 70 5f 74 69 6d 65 5b |.Xstats.|cp_time[|
|00002000| 31 5d 09 6e 69 63 65 20 | 74 69 6d 65 0a 58 73 74 |1].nice |time.Xst|
|00002010| 61 74 73 2e 63 70 5f 74 | 69 6d 65 5b 32 5d 09 73 |ats.cp_t|ime[2].s|
|00002020| 79 73 74 65 6d 20 74 69 | 6d 65 0a 58 73 74 61 74 |ystem ti|me.Xstat|
|00002030| 73 2e 63 70 5f 74 69 6d | 65 5b 33 5d 09 69 64 6c |s.cp_tim|e[3].idl|
|00002040| 65 20 74 69 6d 65 0a 58 | 0a 58 74 68 65 73 65 20 |e time.X|.Xthese |
|00002050| 61 72 65 20 63 75 6d 75 | 6c 61 74 69 76 65 20 74 |are cumu|lative t|
|00002060| 6f 74 61 6c 73 2e 20 20 | 54 6f 20 66 69 6e 64 20 |otals. |To find |
|00002070| 74 68 65 20 70 65 72 63 | 65 6e 74 61 67 65 20 61 |the perc|entage a|
|00002080| 6e 79 20 6f 6e 65 20 6f | 66 0a 58 74 68 65 73 65 |ny one o|f.Xthese|
|00002090| 20 69 73 20 75 73 69 6e | 67 2c 20 66 69 72 73 74 | is usin|g, first|
|000020a0| 20 66 69 6e 64 20 74 68 | 65 20 64 69 66 66 65 72 | find th|e differ|
|000020b0| 65 6e 63 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ence bet|ween the|
|000020c0| 20 6e 65 77 20 76 61 6c | 75 65 0a 58 61 6e 64 20 | new val|ue.Xand |
|000020d0| 74 68 65 20 6f 6c 64 20 | 76 61 6c 75 65 2e 20 20 |the old |value. |
|000020e0| 54 68 65 6e 2c 20 73 75 | 6d 20 74 68 65 6d 20 61 |Then, su|m them a|
|000020f0| 6c 6c 20 75 70 2e 20 20 | 54 68 65 20 70 65 72 63 |ll up. |The perc|
|00002100| 65 6e 74 61 67 65 20 61 | 6e 79 20 6f 6e 65 20 6f |entage a|ny one o|
|00002110| 66 0a 58 74 68 65 6d 20 | 69 73 20 75 73 69 6e 67 |f.Xthem |is using|
|00002120| 20 73 69 6e 63 65 20 74 | 68 65 20 6c 61 73 74 20 | since t|he last |
|00002130| 72 65 71 75 65 73 74 20 | 69 73 20 74 68 65 20 65 |request |is the e|
|00002140| 6c 65 6d 65 6e 74 20 64 | 69 76 69 64 65 64 20 62 |lement d|ivided b|
|00002150| 79 0a 58 74 68 65 20 74 | 6f 74 61 6c 2e 20 20 58 |y.Xthe t|otal. X|
|00002160| 53 74 61 74 73 54 69 6d | 65 20 75 73 65 73 20 74 |StatsTim|e uses t|
|00002170| 68 65 20 69 64 6c 65 20 | 74 69 6d 65 20 28 63 70 |he idle |time (cp|
|00002180| 5f 74 69 6d 65 5b 33 5d | 29 20 74 6f 20 64 65 74 |_time[3]|) to det|
|00002190| 65 72 6d 69 6e 65 0a 58 | 74 68 65 20 61 6d 6f 75 |ermine.X|the amou|
|000021a0| 6e 74 20 62 65 69 6e 67 | 20 75 74 69 6c 69 7a 65 |nt being| utilize|
|000021b0| 64 2e 20 20 4c 65 74 20 | 64 65 6c 74 61 5b 30 2d |d. Let |delta[0-|
|000021c0| 33 5d 20 72 65 70 72 65 | 73 65 6e 74 20 74 68 65 |3] repre|sent the|
|000021d0| 20 64 69 66 66 65 72 65 | 6e 63 65 0a 58 73 69 6e | differe|nce.Xsin|
|000021e0| 63 65 20 74 68 65 20 6c | 61 73 74 20 75 70 64 61 |ce the l|ast upda|
|000021f0| 74 65 20 6f 66 20 74 68 | 65 20 76 61 6c 75 65 73 |te of th|e values|
|00002200| 20 61 62 6f 76 65 2e 20 | 20 54 68 69 73 20 6d 65 | above. | This me|
|00002210| 61 6e 73 20 74 68 61 74 | 20 66 6f 72 0a 58 58 53 |ans that| for.XXS|
|00002220| 79 73 53 74 61 74 2c 20 | 74 68 65 20 70 65 72 63 |ysStat, |the perc|
|00002230| 65 6e 74 20 6f 66 20 63 | 70 75 20 62 65 69 6e 67 |ent of c|pu being|
|00002240| 20 75 73 65 64 20 69 73 | 20 31 30 30 20 2d 20 31 | used is| 100 - 1|
|00002250| 30 30 2a 6b 5b 33 5d 2f | 28 73 75 6d 28 6b 5b 30 |00*k[3]/|(sum(k[0|
|00002260| 2d 33 5d 29 2e 0a 58 0a | 58 0a 58 0a 58 73 74 61 |-3])..X.|X.X.Xsta|
|00002270| 74 73 2e 61 76 65 6e 72 | 75 6e 5b 30 5d 09 44 69 |ts.avenr|un[0].Di|
|00002280| 76 69 64 65 20 76 61 6c | 75 65 20 62 79 20 32 35 |vide val|ue by 25|
|00002290| 36 20 61 6e 64 20 74 68 | 69 73 20 69 73 20 74 68 |6 and th|is is th|
|000022a0| 65 20 6c 6f 61 64 0a 58 | 73 74 61 74 73 2e 61 76 |e load.X|stats.av|
|000022b0| 65 6e 72 75 6e 5b 31 5d | 09 61 76 65 72 61 67 65 |enrun[1]|.average|
|000022c0| 20 6f 76 65 72 20 74 68 | 65 20 6c 61 73 74 20 31 | over th|e last 1|
|000022d0| 2c 35 2c 20 61 6e 64 20 | 31 35 20 6d 69 6e 75 74 |,5, and |15 minut|
|000022e0| 65 73 2e 0a 58 73 74 61 | 74 73 2e 61 76 65 6e 72 |es..Xsta|ts.avenr|
|000022f0| 75 6e 5b 32 5d 0a 58 0a | 58 73 74 61 74 73 2e 76 |un[2].X.|Xstats.v|
|00002300| 5f 73 77 74 63 68 09 09 | 74 6f 74 61 6c 20 63 6f |_swtch..|total co|
|00002310| 6e 74 65 78 74 20 73 77 | 69 74 63 68 65 73 0a 58 |ntext sw|itches.X|
|00002320| 0a 58 73 74 61 74 73 2e | 69 66 5f 63 6f 6c 6c 69 |.Xstats.|if_colli|
|00002330| 73 69 6f 6e 73 09 65 74 | 68 65 72 6e 65 74 20 61 |sions.et|hernet a|
|00002340| 63 74 69 76 69 74 79 20 | 2d 20 63 75 6d 75 6c 61 |ctivity |- cumula|
|00002350| 74 69 76 65 20 74 6f 74 | 61 6c 73 2e 0a 58 73 74 |tive tot|als..Xst|
|00002360| 61 74 73 2e 69 66 5f 6f | 65 72 72 6f 72 73 09 58 |ats.if_o|errors.X|
|00002370| 53 79 73 53 74 61 74 20 | 75 73 65 73 20 74 68 65 |SysStat |uses the|
|00002380| 20 69 65 72 72 6f 72 73 | 20 61 6e 64 20 69 70 61 | ierrors| and ipa|
|00002390| 63 6b 65 74 73 0a 58 73 | 74 61 74 73 2e 69 66 5f |ckets.Xs|tats.if_|
|000023a0| 6f 70 61 63 6b 65 74 73 | 09 65 6c 65 6d 65 6e 74 |opackets|.element|
|000023b0| 73 2e 20 69 74 20 6d 69 | 67 68 74 20 62 65 20 62 |s. it mi|ght be b|
|000023c0| 65 74 74 65 72 20 74 6f | 20 73 75 6d 0a 58 73 74 |etter to| sum.Xst|
|000023d0| 61 74 73 2e 69 66 5f 69 | 65 72 72 6f 72 73 09 69 |ats.if_i|errors.i|
|000023e0| 70 61 63 6b 65 74 73 2b | 6f 70 61 63 6b 65 74 73 |packets+|opackets|
|000023f0| 20 61 6e 64 20 69 65 72 | 72 6f 72 73 2b 6f 65 72 | and ier|rors+oer|
|00002400| 72 6f 72 73 20 66 6f 72 | 0a 58 73 74 61 74 73 2e |rors for|.Xstats.|
|00002410| 69 66 5f 69 70 61 63 6b | 65 74 73 09 72 65 70 6f |if_ipack|ets.repo|
|00002420| 72 74 69 6e 67 2e 0a 58 | 0a 58 73 74 61 74 73 2e |rting..X|.Xstats.|
|00002430| 76 5f 70 67 70 67 69 6e | 09 09 70 61 67 65 20 69 |v_pgpgin|..page i|
|00002440| 6e 2f 6f 75 74 2c 20 73 | 77 61 70 20 69 6e 2f 6f |n/out, s|wap in/o|
|00002450| 75 74 20 63 75 6d 75 6c | 61 74 69 76 65 20 74 6f |ut cumul|ative to|
|00002460| 74 61 6c 73 0a 58 73 74 | 61 74 73 2e 76 5f 70 67 |tals.Xst|ats.v_pg|
|00002470| 70 67 6f 75 74 09 09 58 | 53 79 73 53 74 61 74 20 |pgout..X|SysStat |
|00002480| 75 73 65 73 20 74 68 65 | 20 70 67 70 67 69 6e 20 |uses the| pgpgin |
|00002490| 61 6e 64 20 70 73 77 70 | 69 6e 20 65 6c 65 6d 65 |and pswp|in eleme|
|000024a0| 6e 74 73 2e 0a 58 73 74 | 61 74 73 2e 76 5f 70 73 |nts..Xst|ats.v_ps|
|000024b0| 77 70 69 6e 09 09 58 53 | 79 73 53 74 61 74 20 64 |wpin..XS|ysStat d|
|000024c0| 6f 65 73 20 6e 6f 74 20 | 61 76 65 72 61 67 65 20 |oes not |average |
|000024d0| 74 68 65 73 65 20 6f 76 | 65 72 20 74 69 6d 65 73 |these ov|er times|
|000024e0| 2e 20 20 49 54 20 77 69 | 6c 6c 0a 58 73 74 61 74 |. IT wi|ll.Xstat|
|000024f0| 73 2e 76 5f 70 73 77 70 | 6f 75 74 09 09 69 6e 73 |s.v_pswp|out..ins|
|00002500| 74 65 61 64 20 70 6c 6f | 74 20 74 68 65 20 74 6f |tead plo|t the to|
|00002510| 74 61 6c 20 6e 75 6d 62 | 65 72 20 6f 66 20 6f 63 |tal numb|er of oc|
|00002520| 63 75 72 61 6e 63 65 73 | 20 6f 66 20 74 68 65 73 |curances| of thes|
|00002530| 65 0a 58 09 09 09 73 69 | 6e 63 65 20 74 68 65 20 |e.X...si|nce the |
|00002540| 6c 61 73 74 20 75 70 64 | 61 74 65 2e 20 20 53 69 |last upd|ate. Si|
|00002550| 6e 63 65 20 74 68 65 73 | 65 20 61 72 65 20 75 73 |nce thes|e are us|
|00002560| 75 61 6c 6c 79 0a 58 09 | 09 09 66 61 69 72 6c 79 |ually.X.|..fairly|
|00002570| 20 6c 6f 77 20 6f 63 63 | 75 72 69 6e 67 20 65 76 | low occ|uring ev|
|00002580| 65 6e 74 73 2c 20 49 20 | 70 72 65 66 65 72 65 64 |ents, I |prefered|
|00002590| 20 69 74 20 74 68 69 73 | 20 77 61 79 2e 0a 58 0a | it this| way..X.|
|000025a0| 58 73 74 61 74 73 2e 76 | 5f 69 6e 74 72 09 09 63 |Xstats.v|_intr..c|
|000025b0| 75 6d 75 6c 61 74 69 76 | 65 20 23 20 6f 66 20 69 |umulativ|e # of i|
|000025c0| 6e 74 65 72 72 75 70 74 | 73 2e 20 20 41 6c 74 68 |nterrupt|s. Alth|
|000025d0| 6f 75 67 68 20 69 74 0a | 58 09 09 09 70 72 6f 62 |ough it.|X...prob|
|000025e0| 61 62 6c 79 20 73 68 6f | 75 6c 64 20 6e 6f 20 68 |ably sho|uld no h|
|000025f0| 61 70 70 65 6e 2c 20 61 | 74 20 74 69 6d 65 73 20 |appen, a|t times |
|00002600| 61 20 6d 6f 72 65 0a 58 | 09 09 09 72 65 63 65 6e |a more.X|...recen|
|00002610| 74 6c 79 20 72 65 70 6f | 72 74 65 64 20 76 61 6c |tly repo|rted val|
|00002620| 75 65 20 69 73 20 6c 65 | 73 73 20 74 68 61 6e 20 |ue is le|ss than |
|00002630| 74 68 65 0a 58 09 09 09 | 70 72 65 76 69 6f 75 73 |the.X...|previous|
|00002640| 20 72 65 70 6f 72 74 65 | 64 20 76 61 6c 75 65 2e | reporte|d value.|
|00002650| 0a 58 0a 58 73 74 61 74 | 73 2e 64 6b 5f 78 66 65 |.X.Xstat|s.dk_xfe|
|00002660| 72 5b 30 5d 09 64 69 73 | 6b 20 74 72 61 6e 73 66 |r[0].dis|k transf|
|00002670| 65 72 73 2e 20 20 4f 6e | 6c 79 20 74 68 65 20 66 |ers. On|ly the f|
|00002680| 69 72 73 74 20 73 65 65 | 6d 73 20 74 6f 20 68 61 |irst see|ms to ha|
|00002690| 76 65 0a 58 73 74 61 74 | 73 2e 64 6b 5f 78 66 65 |ve.Xstat|s.dk_xfe|
|000026a0| 72 5b 31 5d 09 61 6e 79 | 20 72 65 61 6c 20 75 73 |r[1].any| real us|
|000026b0| 65 66 75 6c 20 28 6e 6f | 6e 7a 65 72 6f 29 20 76 |eful (no|nzero) v|
|000026c0| 61 6c 75 65 3f 20 20 49 | 66 20 74 68 65 73 65 20 |alue? I|f these |
|000026d0| 61 72 65 0a 58 73 74 61 | 74 73 2e 64 6b 5f 78 66 |are.Xsta|ts.dk_xf|
|000026e0| 65 72 5b 32 5d 09 73 69 | 6d 69 6c 69 61 72 20 74 |er[2].si|miliar t|
|000026f0| 6f 20 77 68 61 74 20 76 | 6d 73 74 61 74 20 72 65 |o what v|mstat re|
|00002700| 70 6f 72 74 73 2c 20 74 | 68 65 73 65 20 63 61 6e |ports, t|hese can|
|00002710| 0a 58 73 74 61 74 73 2e | 64 6b 5f 78 66 65 72 5b |.Xstats.|dk_xfer[|
|00002720| 33 5d 09 62 65 20 66 6f | 72 20 64 69 66 66 65 72 |3].be fo|r differ|
|00002730| 65 6e 74 20 64 69 73 6b | 73 2e 0a 58 0a 45 4e 44 |ent disk|s..X.END|
|00002740| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00002750| 20 33 31 39 32 20 2d 6e | 65 20 60 77 63 20 2d 63 | 3192 -n|e `wc -c|
|00002760| 20 3c 27 50 4f 52 54 49 | 4e 47 27 60 3b 20 74 68 | <'PORTI|NG'`; th|
|00002770| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00002780| 3a 20 5c 22 27 50 4f 52 | 54 49 4e 47 27 5c 22 20 |: \"'POR|TING'\" |
|00002790| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000027a0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|000027b0| 6e 64 20 6f 66 20 27 50 | 4f 52 54 49 4e 47 27 0a |nd of 'P|ORTING'.|
|000027c0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |fi.if te|st -f 'R|
|000027d0| 45 41 44 4d 45 27 20 2d | 61 20 22 24 7b 31 7d 22 |EADME' -|a "${1}"|
|000027e0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000027f0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00002800| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00002810| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00002820| 52 45 41 44 4d 45 27 5c | 22 0a 65 6c 73 65 0a 65 |README'\|".else.e|
|00002830| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00002840| 74 69 6e 67 20 5c 22 27 | 52 45 41 44 4d 45 27 5c |ting \"'|README'\|
|00002850| 22 20 5c 28 33 38 38 32 | 20 63 68 61 72 61 63 74 |" \(3882| charact|
|00002860| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00002870| 2f 22 20 3e 27 52 45 41 | 44 4d 45 27 20 3c 3c 27 |/" >'REA|DME' <<'|
|00002880| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 58 53 |END_OF_F|ILE'.XXS|
|00002890| 79 73 53 74 61 74 73 20 | 52 45 41 44 4d 45 3a 0a |ysStats |README:.|
|000028a0| 58 0a 58 44 45 53 43 52 | 49 50 54 49 4f 4e 3a 0a |X.XDESCR|IPTION:.|
|000028b0| 58 0a 58 58 53 79 73 53 | 74 61 74 73 20 69 73 20 |X.XXSysS|tats is |
|000028c0| 61 20 73 79 73 74 65 6d | 20 69 6e 66 6f 72 6d 61 |a system| informa|
|000028d0| 74 69 6f 6e 20 64 69 73 | 70 6c 61 79 20 74 6f 6f |tion dis|play too|
|000028e0| 6c 20 73 69 6d 69 6c 61 | 72 20 74 6f 20 70 65 72 |l simila|r to per|
|000028f0| 66 6d 65 74 65 72 2e 20 | 20 49 74 0a 58 64 69 73 |fmeter. | It.Xdis|
|00002900| 70 6c 61 79 73 20 69 74 | 73 20 69 6e 66 6f 72 6d |plays it|s inform|
|00002910| 61 74 69 6f 6e 20 69 6e | 20 74 68 65 20 66 6f 72 |ation in| the for|
|00002920| 6d 20 6f 66 20 61 20 73 | 74 72 69 70 20 63 68 61 |m of a s|trip cha|
|00002930| 72 74 2e 20 20 49 74 20 | 63 61 6e 20 61 6c 73 6f |rt. It |can also|
|00002940| 20 64 69 73 70 6c 61 79 | 0a 58 69 6e 66 6f 72 6d | display|.Xinform|
|00002950| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 72 65 6d 6f |ation ab|out remo|
|00002960| 74 65 20 68 6f 73 74 73 | 2c 20 61 73 20 70 65 72 |te hosts|, as per|
|00002970| 66 6d 65 74 65 72 20 63 | 61 6e 20 64 6f 2e 0a 58 |fmeter c|an do..X|
|00002980| 0a 58 58 53 79 73 53 74 | 61 74 73 20 63 61 6e 20 |.XXSysSt|ats can |
|00002990| 64 69 73 70 6c 61 79 20 | 61 6e 79 20 6e 75 6d 62 |display |any numb|
|000029a0| 65 72 20 6f 66 20 67 72 | 61 70 68 73 20 61 74 20 |er of gr|aphs at |
|000029b0| 6f 6e 65 20 74 69 6d 65 | 20 69 6e 20 74 68 65 20 |one time| in the |
|000029c0| 73 61 6d 65 20 77 69 6e | 64 6f 77 2e 0a 58 49 6e |same win|dow..XIn|
|000029d0| 66 6f 72 6d 61 74 69 6f | 6e 20 62 65 69 6e 67 20 |formatio|n being |
|000029e0| 64 69 73 70 6c 61 79 65 | 64 20 69 6e 20 74 68 65 |displaye|d in the|
|000029f0| 20 77 69 6e 64 6f 77 20 | 6e 65 65 64 20 6e 6f 74 | window |need not|
|00002a00| 20 62 65 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 73 | be all |of the s|
|00002a10| 61 6d 65 20 68 6f 73 74 | 2e 0a 58 46 6f 72 20 65 |ame host|..XFor e|
|00002a20| 78 61 6d 70 6c 65 2c 20 | 79 6f 75 20 63 6f 75 6c |xample, |you coul|
|00002a30| 64 20 68 61 76 65 20 69 | 74 20 64 69 73 70 6c 61 |d have i|t displa|
|00002a40| 79 20 74 68 65 20 70 65 | 72 63 65 6e 74 61 67 65 |y the pe|rcentage|
|00002a50| 20 6f 66 20 63 70 75 20 | 62 65 69 6e 67 20 75 74 | of cpu |being ut|
|00002a60| 69 6c 69 7a 65 64 0a 58 | 6f 66 20 68 61 6c 66 20 |ilized.X|of half |
|00002a70| 61 20 64 6f 7a 65 6e 20 | 28 6f 72 20 6d 6f 72 65 |a dozen |(or more|
|00002a80| 29 20 64 69 66 66 65 72 | 65 6e 74 20 68 6f 73 74 |) differ|ent host|
|00002a90| 73 2e 0a 58 0a 58 41 73 | 20 6f 66 20 74 68 69 73 |s..X.XAs| of this|
|00002aa0| 20 77 72 69 74 69 6e 67 | 2c 20 74 68 65 20 6f 6e | writing|, the on|
|00002ab0| 6c 79 20 73 79 73 74 65 | 6d 20 74 68 69 73 20 68 |ly syste|m this h|
|00002ac0| 61 73 20 62 65 65 6e 20 | 74 65 73 74 65 64 20 6f |as been |tested o|
|00002ad0| 6e 20 69 73 20 61 20 53 | 75 6e 20 33 2f 36 30 0a |n is a S|un 3/60.|
|00002ae0| 58 72 75 6e 6e 69 6e 67 | 20 53 75 6e 4f 73 20 34 |Xrunning| SunOs 4|
|00002af0| 2e 31 2e 31 20 61 6e 64 | 20 58 31 31 52 35 2e 20 |.1.1 and| X11R5. |
|00002b00| 20 49 74 20 73 68 6f 75 | 6c 64 20 72 75 6e 20 6f | It shou|ld run o|
|00002b10| 6e 20 6d 6f 73 74 20 61 | 6e 79 20 73 75 6e 20 77 |n most a|ny sun w|
|00002b20| 69 74 68 20 53 75 6e 4f | 73 0a 58 34 2e 31 2e 31 |ith SunO|s.X4.1.1|
|00002b30| 2e 20 20 46 6f 72 20 6f | 74 68 65 72 20 73 79 73 |. For o|ther sys|
|00002b40| 74 65 6d 73 2c 20 73 6f | 6d 65 20 70 6f 72 74 69 |tems, so|me porti|
|00002b50| 6e 67 20 6d 61 79 20 62 | 65 20 72 65 71 75 69 72 |ng may b|e requir|
|00002b60| 65 64 20 66 6f 72 20 69 | 74 20 74 6f 20 77 6f 72 |ed for i|t to wor|
|00002b70| 6b 2e 0a 58 58 53 79 73 | 53 74 61 74 73 20 75 73 |k..XXSys|Stats us|
|00002b80| 65 20 74 68 65 20 27 72 | 73 74 61 74 27 20 66 75 |e the 'r|stat' fu|
|00002b90| 6e 63 74 69 6f 6e 20 74 | 6f 20 67 65 74 20 69 6e |nction t|o get in|
|00002ba0| 66 6f 72 6d 61 74 69 6f | 6e 2e 20 20 54 68 69 73 |formatio|n. This|
|00002bb0| 20 70 72 6f 62 61 62 6c | 79 0a 58 64 6f 65 73 20 | probabl|y.Xdoes |
|00002bc0| 6e 6f 74 20 65 78 69 73 | 74 20 6f 6e 20 61 6c 6c |not exis|t on all|
|00002bd0| 20 6d 61 63 68 69 6e 65 | 73 2c 20 61 6e 64 20 74 | machine|s, and t|
|00002be0| 68 65 20 73 74 72 75 63 | 74 75 72 65 20 69 74 20 |he struc|ture it |
|00002bf0| 75 73 65 73 20 6d 61 79 | 20 76 61 72 79 0a 58 62 |uses may| vary.Xb|
|00002c00| 65 74 77 65 65 6e 20 64 | 69 66 66 65 72 65 6e 74 |etween d|ifferent|
|00002c10| 20 6d 61 63 68 69 6e 65 | 73 2e 20 20 53 65 65 20 | machine|s. See |
|00002c20| 74 68 65 20 50 4f 52 54 | 49 4e 47 20 66 69 6c 65 |the PORT|ING file|
|00002c30| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00002c40| 61 74 69 6f 6e 0a 58 6f | 6e 20 68 6f 77 20 74 6f |ation.Xo|n how to|
|00002c50| 20 70 6f 72 74 20 74 6f | 20 64 69 66 66 65 72 65 | port to| differe|
|00002c60| 6e 74 20 73 79 73 74 65 | 6d 73 2e 0a 58 0a 58 58 |nt syste|ms..X.XX|
|00002c70| 53 79 73 53 74 61 74 73 | 20 72 65 71 75 69 72 65 |SysStats| require|
|00002c80| 20 61 6e 20 41 4e 53 49 | 20 63 61 70 61 62 6c 65 | an ANSI| capable|
|00002c90| 20 63 6f 6d 70 69 6c 65 | 72 2e 20 20 47 63 63 20 | compile|r. Gcc |
|00002ca0| 77 6f 72 6b 73 20 66 69 | 6e 65 2c 20 61 6e 64 0a |works fi|ne, and.|
|00002cb0| 58 53 75 6e 27 73 20 61 | 63 63 20 61 6c 73 6f 20 |XSun's a|cc also |
|00002cc0| 77 6f 72 6b 20 28 62 75 | 74 20 6d 61 79 20 72 65 |work (bu|t may re|
|00002cd0| 73 75 6c 74 20 69 6e 20 | 77 61 72 6e 69 6e 67 73 |sult in |warnings|
|00002ce0| 20 61 74 20 63 6f 6d 70 | 69 6c 65 20 74 69 6d 65 | at comp|ile time|
|00002cf0| 2e 29 0a 58 0a 58 54 68 | 65 72 65 20 61 72 65 20 |.).X.XTh|ere are |
|00002d00| 73 6f 6d 65 20 74 68 69 | 6e 67 73 20 74 68 61 74 |some thi|ngs that|
|00002d10| 20 70 65 72 66 6d 65 74 | 65 72 20 28 4f 70 65 6e | perfmet|er (Open|
|00002d20| 77 69 6e 64 6f 77 73 20 | 32 20 76 65 72 73 69 6f |windows |2 versio|
|00002d30| 6e 29 20 69 73 20 61 62 | 6c 65 20 74 6f 20 64 6f |n) is ab|le to do|
|00002d40| 0a 58 74 68 61 74 20 58 | 53 79 73 53 74 61 74 73 |.Xthat X|SysStats|
|00002d50| 20 63 61 6e 20 6e 6f 74 | 20 64 6f 2e 20 20 50 65 | can not| do. Pe|
|00002d60| 72 66 6d 65 74 65 72 20 | 69 6e 20 69 74 73 20 69 |rfmeter |in its i|
|00002d70| 63 6f 6e 69 63 20 66 6f | 72 6d 20 64 69 73 70 6c |conic fo|rm displ|
|00002d80| 61 79 73 20 61 20 6d 65 | 74 65 72 0a 58 77 69 74 |ays a me|ter.Xwit|
|00002d90| 68 20 68 61 6e 64 73 2e | 20 58 53 79 73 53 74 61 |h hands.| XSysSta|
|00002da0| 74 73 20 6f 6e 6c 79 20 | 64 69 73 70 6c 61 79 73 |ts only |displays|
|00002db0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 77 68 69 | informa|tion whi|
|00002dc0| 6c 65 20 69 6e 20 69 74 | 73 20 6f 70 65 6e 20 73 |le in it|s open s|
|00002dd0| 74 61 74 65 2e 0a 58 41 | 6c 73 6f 2c 20 70 65 72 |tate..XA|lso, per|
|00002de0| 66 6d 65 74 65 72 20 61 | 6c 6c 6f 77 73 20 74 68 |fmeter a|llows th|
|00002df0| 65 20 75 73 65 72 20 74 | 6f 20 63 68 61 6e 67 65 |e user t|o change|
|00002e00| 20 77 68 61 74 20 69 6e | 66 6f 72 6d 61 74 69 6f | what in|formatio|
|00002e10| 6e 20 69 74 20 64 69 73 | 70 6c 61 79 73 2c 20 6f |n it dis|plays, o|
|00002e20| 72 0a 58 68 6f 77 20 66 | 72 65 71 75 65 6e 74 6c |r.Xhow f|requentl|
|00002e30| 79 20 69 74 20 75 70 64 | 61 74 65 73 20 69 74 2e |y it upd|ates it.|
|00002e40| 20 20 4f 6e 63 65 20 58 | 53 79 73 53 74 61 74 73 | Once X|SysStats|
|00002e50| 20 68 61 73 20 62 65 65 | 6e 20 72 75 6e 2c 20 77 | has bee|n run, w|
|00002e60| 68 61 74 20 69 74 20 64 | 69 73 70 6c 61 79 73 0a |hat it d|isplays.|
|00002e70| 58 69 73 20 6c 6f 63 6b | 65 64 20 69 6e 74 6f 20 |Xis lock|ed into |
|00002e80| 70 6c 61 63 65 2e 0a 58 | 0a 58 48 6f 77 65 76 65 |place..X|.XHoweve|
|00002e90| 72 2c 20 58 53 79 73 53 | 74 61 74 73 20 68 61 73 |r, XSysS|tats has|
|00002ea0| 20 74 68 65 20 61 64 76 | 61 6e 74 61 67 65 20 74 | the adv|antage t|
|00002eb0| 68 61 74 20 74 68 65 20 | 6f 6e 6c 79 20 58 20 6c |hat the |only X l|
|00002ec0| 69 62 72 61 72 79 20 69 | 74 20 75 73 65 73 20 69 |ibrary i|t uses i|
|00002ed0| 73 0a 58 74 68 65 20 62 | 61 73 65 20 58 31 31 20 |s.Xthe b|ase X11 |
|00002ee0| 6c 69 62 72 61 72 79 2e | 20 20 54 68 69 73 20 6d |library.| This m|
|00002ef0| 65 61 6e 73 20 74 68 65 | 20 72 65 73 69 64 65 6e |eans the| residen|
|00002f00| 74 20 73 69 7a 65 20 69 | 73 20 73 6d 61 6c 6c 65 |t size i|s smalle|
|00002f10| 72 20 74 68 61 6e 0a 58 | 70 65 72 66 6d 65 74 65 |r than.X|perfmete|
|00002f20| 72 20 28 61 20 6c 6f 74 | 20 6f 66 20 73 70 61 63 |r (a lot| of spac|
|00002f30| 65 20 63 61 6e 20 62 65 | 20 73 61 76 65 64 20 69 |e can be| saved i|
|00002f40| 66 20 79 6f 75 20 72 75 | 6e 20 73 65 76 65 72 61 |f you ru|n severa|
|00002f50| 6c 20 70 65 72 66 6d 65 | 74 65 72 73 2c 0a 58 61 |l perfme|ters,.Xa|
|00002f60| 73 20 74 68 65 73 65 20 | 63 6f 75 6c 64 20 74 68 |s these |could th|
|00002f70| 65 6e 20 62 65 20 63 6f | 6d 62 69 6e 65 64 20 69 |en be co|mbined i|
|00002f80| 6e 74 6f 20 6f 6e 65 20 | 58 53 79 73 53 74 61 74 |nto one |XSysStat|
|00002f90| 73 20 77 69 6e 64 6f 77 | 29 0a 58 58 53 79 73 53 |s window|).XXSysS|
|00002fa0| 74 61 74 73 20 69 6e 20 | 67 65 6e 65 72 61 6c 20 |tats in |general |
|00002fb0| 63 6f 6e 73 75 6d 65 73 | 20 6c 65 73 73 20 43 50 |consumes| less CP|
|00002fc0| 55 20 74 69 6d 65 20 74 | 68 61 6e 20 70 65 72 66 |U time t|han perf|
|00002fd0| 6d 65 74 65 72 20 64 6f | 65 73 20 28 61 6e 0a 58 |meter do|es (an.X|
|00002fe0| 58 53 79 73 53 74 61 74 | 20 70 72 6f 67 72 61 6d |XSysStat| program|
|00002ff0| 20 64 69 73 70 6c 61 79 | 69 6e 67 20 66 6f 75 72 | display|ing four|
|00003000| 20 67 72 61 70 68 73 20 | 61 62 6f 75 74 20 6f 6e | graphs |about on|
|00003010| 65 20 6d 61 63 68 69 6e | 65 20 74 61 6b 65 73 20 |e machin|e takes |
|00003020| 6c 65 73 73 20 74 68 61 | 6e 0a 58 68 61 6c 66 20 |less tha|n.Xhalf |
|00003030| 74 68 65 20 74 69 6d 65 | 20 61 20 70 65 72 66 6d |the time| a perfm|
|00003040| 65 74 65 72 20 74 6f 6f | 6b 20 64 69 73 70 6c 61 |eter too|k displa|
|00003050| 79 69 6e 67 20 6a 75 73 | 74 20 6f 6e 65 20 67 72 |ying jus|t one gr|
|00003060| 61 70 68 2e 29 0a 58 48 | 6f 77 65 76 65 72 2c 20 |aph.).XH|owever, |
|00003070| 66 6f 72 20 72 65 61 73 | 6f 6e 73 20 49 20 68 61 |for reas|ons I ha|
|00003080| 76 65 20 6e 6f 74 20 66 | 69 67 75 72 65 64 20 6f |ve not f|igured o|
|00003090| 75 74 2c 20 69 74 20 73 | 65 65 6d 73 20 74 6f 20 |ut, it s|eems to |
|000030a0| 63 6f 6e 73 75 6d 65 20 | 6d 6f 72 65 0a 58 43 50 |consume |more.XCP|
|000030b0| 55 20 74 69 6d 65 20 74 | 68 61 6e 20 70 65 72 66 |U time t|han perf|
|000030c0| 6d 65 74 65 72 20 69 66 | 20 72 65 70 6f 72 74 69 |meter if| reporti|
|000030d0| 6e 67 20 6f 6e 20 72 65 | 6d 6f 74 65 20 68 6f 73 |ng on re|mote hos|
|000030e0| 74 73 2e 20 20 45 76 65 | 6e 20 77 69 74 68 20 74 |ts. Eve|n with t|
|000030f0| 68 69 73 0a 58 69 6e 63 | 72 65 61 73 65 64 20 63 |his.Xinc|reased c|
|00003100| 6f 73 74 2c 20 69 74 20 | 6f 6e 6c 79 20 61 63 63 |ost, it |only acc|
|00003110| 6f 75 6e 74 65 64 20 66 | 6f 72 20 61 62 6f 75 74 |ounted f|or about|
|00003120| 20 31 2e 35 25 20 6f 66 | 20 74 68 65 20 63 70 75 | 1.5% of| the cpu|
|00003130| 20 74 69 6d 65 20 6f 6e | 0a 58 6d 79 20 73 75 6e | time on|.Xmy sun|
|00003140| 20 33 2f 36 30 2e 0a 58 | 0a 58 4e 6f 74 65 3a 20 | 3/60..X|.XNote: |
|00003150| 20 54 68 65 20 6d 75 6c | 74 69 70 6c 65 20 67 72 | The mul|tiple gr|
|00003160| 61 70 68 73 20 69 6e 20 | 6f 6e 65 20 77 69 6e 64 |aphs in |one wind|
|00003170| 6f 77 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |ow will |probably|
|00003180| 20 6e 6f 74 20 62 65 20 | 6f 66 20 6d 75 63 68 0a | not be |of much.|
|00003190| 58 75 73 65 20 6f 6e 20 | 61 20 62 6c 61 63 6b 2f |Xuse on |a black/|
|000031a0| 77 68 69 74 65 20 73 79 | 73 74 65 6d 2e 20 20 59 |white sy|stem. Y|
|000031b0| 6f 75 20 72 65 61 6c 6c | 79 20 6e 65 65 64 20 74 |ou reall|y need t|
|000031c0| 6f 20 68 61 76 65 20 74 | 68 65 20 67 72 61 70 68 |o have t|he graph|
|000031d0| 73 20 64 69 66 66 65 72 | 65 6e 74 0a 58 63 6f 6c |s differ|ent.Xcol|
|000031e0| 6f 72 20 28 6f 72 20 70 | 65 72 68 61 70 73 20 73 |or (or p|erhaps s|
|000031f0| 63 61 6c 65 20 6f 66 20 | 67 72 61 79 29 20 74 6f |cale of |gray) to|
|00003200| 20 6d 61 6b 65 20 6d 75 | 63 68 20 73 65 6e 73 65 | make mu|ch sense|
|00003210| 20 6f 66 20 74 68 65 6d | 2e 0a 58 0a 58 4c 49 43 | of them|..X.XLIC|
|00003220| 45 4e 53 45 3a 0a 58 0a | 58 58 53 79 73 53 74 61 |ENSE:.X.|XXSysSta|
|00003230| 74 73 20 69 73 20 43 6f | 70 79 72 69 67 68 74 20 |ts is Co|pyright |
|00003240| 28 43 29 20 31 39 39 33 | 20 62 79 20 4d 61 72 6b |(C) 1993| by Mark|
|00003250| 20 57 65 64 65 6c 2e 0a | 58 0a 58 58 53 79 73 53 | Wedel..|X.XXSysS|
|00003260| 74 61 74 73 20 63 61 6e | 20 62 65 20 72 65 64 69 |tats can| be redi|
|00003270| 73 74 72 69 62 75 74 65 | 64 20 70 72 6f 76 69 64 |stribute|d provid|
|00003280| 65 64 20 69 74 20 69 73 | 20 64 6f 6e 65 20 66 72 |ed it is| done fr|
|00003290| 65 65 20 6f 66 20 63 68 | 61 72 67 65 2e 0a 58 58 |ee of ch|arge..XX|
|000032a0| 53 79 73 53 74 61 74 73 | 20 63 61 6e 20 61 6c 73 |SysStats| can als|
|000032b0| 6f 20 62 65 20 6d 6f 64 | 69 66 69 65 64 2c 20 62 |o be mod|ified, b|
|000032c0| 75 74 20 6f 72 69 67 69 | 6e 61 6c 20 63 72 65 64 |ut origi|nal cred|
|000032d0| 69 74 20 6d 75 73 74 20 | 62 65 20 67 69 76 65 6e |it must |be given|
|000032e0| 20 74 6f 0a 58 4d 61 72 | 6b 20 57 65 64 65 6c 2e | to.XMar|k Wedel.|
|000032f0| 0a 58 0a 58 58 53 79 73 | 53 74 61 74 73 20 69 73 |.X.XXSys|Stats is|
|00003300| 20 70 72 6f 76 69 64 65 | 64 20 61 73 20 69 73 2e | provide|d as is.|
|00003310| 20 20 49 20 74 61 6b 65 | 20 6e 6f 20 72 65 73 70 | I take| no resp|
|00003320| 6f 6e 73 69 62 69 6c 69 | 74 79 20 66 6f 72 20 64 |onsibili|ty for d|
|00003330| 61 6d 61 67 65 0a 58 6f | 72 20 70 72 6f 62 6c 65 |amage.Xo|r proble|
|00003340| 6d 73 20 63 61 75 73 65 | 64 20 62 79 20 74 68 65 |ms cause|d by the|
|00003350| 20 75 73 65 20 6f 66 20 | 58 53 79 73 53 74 61 74 | use of |XSysStat|
|00003360| 73 2e 0a 58 0a 58 54 4f | 20 42 55 49 4c 44 3a 0a |s..X.XTO| BUILD:.|
|00003370| 58 0a 58 20 20 20 20 4e | 6f 74 65 3a 20 20 41 6e |X.X N|ote: An|
|00003380| 20 41 4e 53 49 20 43 20 | 63 6f 6d 70 69 6c 65 72 | ANSI C |compiler|
|00003390| 20 69 73 20 72 65 71 75 | 69 72 65 64 2e 20 20 43 | is requ|ired. C|
|000033a0| 68 61 6e 67 65 73 20 74 | 6f 20 74 68 65 20 49 6d |hanges t|o the Im|
|000033b0| 61 6b 65 66 69 6c 65 0a | 58 20 20 20 20 6f 72 20 |akefile.|X or |
|000033c0| 4d 61 6b 65 66 69 6c 65 | 20 6d 61 79 20 62 65 20 |Makefile| may be |
|000033d0| 6e 65 65 64 65 64 20 64 | 65 70 65 6e 64 69 6e 67 |needed d|epending|
|000033e0| 20 6f 6e 20 77 68 61 74 | 20 74 68 65 20 64 65 66 | on what| the def|
|000033f0| 61 75 6c 74 20 63 6f 6d | 70 69 6c 65 72 20 6f 6e |ault com|piler on|
|00003400| 0a 58 20 20 20 20 79 6f | 75 72 20 73 79 73 74 65 |.X yo|ur syste|
|00003410| 6d 20 63 61 6e 20 68 61 | 6e 64 6c 65 2e 0a 58 0a |m can ha|ndle..X.|
|00003420| 58 20 20 20 20 49 66 20 | 75 73 69 6e 67 20 69 6d |X If |using im|
|00003430| 61 6b 65 2c 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ake, the| followi|
|00003440| 6e 67 20 73 68 6f 75 6c | 64 20 77 6f 72 6b 20 66 |ng shoul|d work f|
|00003450| 69 6e 65 3a 0a 58 0a 58 | 09 31 29 20 78 6d 6b 6d |ine:.X.X|.1) xmkm|
|00003460| 66 0a 58 09 32 29 20 6d | 61 6b 65 0a 58 09 33 29 |f.X.2) m|ake.X.3)|
|00003470| 20 6d 61 6b 65 20 69 6e | 73 74 61 6c 6c 0a 58 09 | make in|stall.X.|
|00003480| 34 29 20 6d 61 6b 65 20 | 69 6e 73 74 61 6c 6c 2e |4) make |install.|
|00003490| 6d 61 6e 0a 58 0a 58 20 | 20 20 20 49 66 20 79 6f |man.X.X | If yo|
|000034a0| 75 20 61 72 65 20 69 6e | 73 74 65 61 64 20 75 73 |u are in|stead us|
|000034b0| 69 6e 67 20 6d 61 6b 65 | 2c 20 74 72 79 3a 0a 58 |ing make|, try:.X|
|000034c0| 0a 58 09 31 29 20 63 70 | 20 4d 61 6b 65 66 69 6c |.X.1) cp| Makefil|
|000034d0| 65 2e 6e 6f 49 6d 20 4d | 61 6b 65 66 69 6c 65 0a |e.noIm M|akefile.|
|000034e0| 58 09 32 29 20 45 64 69 | 74 20 74 68 65 20 4d 61 |X.2) Edi|t the Ma|
|000034f0| 6b 65 66 69 6c 65 2e 20 | 20 4d 6f 73 74 20 74 68 |kefile. | Most th|
|00003500| 69 6e 67 73 20 61 72 65 | 20 70 72 65 74 74 79 20 |ings are| pretty |
|00003510| 73 74 61 6e 64 61 72 64 | 20 61 6e 64 20 63 6c 65 |standard| and cle|
|00003520| 61 72 2e 0a 58 09 33 29 | 20 6d 61 6b 65 0a 58 09 |ar..X.3)| make.X.|
|00003530| 34 29 20 6d 61 6b 65 20 | 69 6e 73 74 61 6c 6c 0a |4) make |install.|
|00003540| 58 0a 58 42 55 47 53 2f | 50 52 4f 42 4c 45 4d 53 |X.XBUGS/|PROBLEMS|
|00003550| 2f 46 49 58 45 53 3a 0a | 58 0a 58 49 66 20 79 6f |/FIXES:.|X.XIf yo|
|00003560| 75 20 68 61 76 65 20 66 | 69 78 65 64 20 73 6f 6d |u have f|ixed som|
|00003570| 65 20 70 72 6f 62 6c 65 | 6d 2c 20 6f 72 20 61 64 |e proble|m, or ad|
|00003580| 64 65 64 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ded supp|ort for |
|00003590| 61 6e 6f 74 68 65 72 20 | 6d 61 63 68 69 6e 65 2c |another |machine,|
|000035a0| 0a 58 79 6f 75 20 63 61 | 6e 20 73 65 6e 64 20 6d |.Xyou ca|n send m|
|000035b0| 65 20 74 68 65 20 70 61 | 74 63 68 20 61 74 20 6d |e the pa|tch at m|
|000035c0| 61 73 74 65 72 40 72 61 | 68 75 6c 2e 6e 65 74 2e |aster@ra|hul.net.|
|000035d0| 0a 58 0a 58 49 66 20 79 | 6f 75 20 6e 6f 74 69 63 |.X.XIf y|ou notic|
|000035e0| 65 20 61 20 62 75 67 2c | 20 79 6f 75 20 63 61 6e |e a bug,| you can|
|000035f0| 20 73 65 6e 64 20 6d 65 | 20 6d 61 69 6c 20 61 74 | send me| mail at|
|00003600| 20 74 68 65 20 73 61 6d | 65 20 61 64 64 72 65 73 | the sam|e addres|
|00003610| 73 2e 20 20 50 6c 65 61 | 73 65 0a 58 64 6f 20 6e |s. Plea|se.Xdo n|
|00003620| 6f 74 20 73 65 6e 64 20 | 62 75 67 20 72 65 70 6f |ot send |bug repo|
|00003630| 72 74 73 20 6f 66 20 69 | 74 20 6e 6f 74 20 63 6f |rts of i|t not co|
|00003640| 6d 70 69 6c 69 6e 67 20 | 6f 6e 20 61 20 73 70 65 |mpiling |on a spe|
|00003650| 63 69 66 69 63 20 6d 61 | 63 68 69 6e 65 20 62 65 |cific ma|chine be|
|00003660| 63 61 75 73 65 0a 58 72 | 73 74 61 74 20 64 6f 65 |cause.Xr|stat doe|
|00003670| 73 20 6e 6f 74 20 65 78 | 69 73 74 20 28 6f 72 20 |s not ex|ist (or |
|00003680| 6d 6f 73 74 20 6f 74 68 | 65 72 20 70 72 6f 62 6c |most oth|er probl|
|00003690| 65 6d 73 20 69 66 20 74 | 68 65 79 20 61 72 65 20 |ems if t|hey are |
|000036a0| 69 6e 20 74 68 65 20 70 | 6f 72 74 69 6e 67 2e 63 |in the p|orting.c|
|000036b0| 0a 58 66 69 6c 65 2e 29 | 20 20 49 20 6c 69 6b 65 |.Xfile.)| I like|
|000036c0| 6c 79 20 77 69 6c 6c 20 | 6e 6f 74 20 68 61 76 65 |ly will |not have|
|000036d0| 20 61 63 63 65 73 73 20 | 74 6f 20 74 68 65 20 68 | access |to the h|
|000036e0| 61 72 64 77 61 72 65 20 | 6e 65 63 65 73 73 61 72 |ardware |necessar|
|000036f0| 79 20 74 6f 20 74 72 61 | 63 6b 0a 58 74 68 65 6d |y to tra|ck.Xthem|
|00003700| 20 64 6f 77 6e 2c 20 73 | 6f 20 49 20 77 69 6c 6c | down, s|o I will|
|00003710| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 64 6f 20 6e | be able| to do n|
|00003720| 6f 74 68 69 6e 67 20 61 | 62 6f 75 74 20 69 74 2e |othing a|bout it.|
|00003730| 0a 58 0a 58 4e 4f 54 45 | 53 3a 0a 58 0a 58 49 66 |.X.XNOTE|S:.X.XIf|
|00003740| 20 79 6f 75 20 73 65 6e | 64 20 6d 65 20 6d 61 69 | you sen|d me mai|
|00003750| 6c 2c 20 70 6c 65 61 73 | 65 20 69 6e 63 6c 75 64 |l, pleas|e includ|
|00003760| 65 20 61 20 76 61 6c 69 | 64 20 6d 61 69 6c 20 61 |e a vali|d mail a|
|00003770| 64 64 72 65 73 73 20 49 | 20 63 61 6e 20 72 65 61 |ddress I| can rea|
|00003780| 63 68 0a 58 79 6f 75 20 | 61 74 2e 0a 58 0a 58 20 |ch.Xyou |at..X.X |
|00003790| 4c 6f 6f 6b 69 6e 67 20 | 66 6f 72 20 61 20 43 2f |Looking |for a C/|
|000037a0| 43 2b 2b 2f 58 31 31 20 | 70 72 6f 67 72 61 6d 6d |C++/X11 |programm|
|000037b0| 65 72 20 69 6e 20 70 72 | 65 66 65 72 61 62 6c 65 |er in pr|eferable|
|000037c0| 20 74 68 65 20 53 69 6c | 69 63 6f 6e 20 56 61 6c | the Sil|icon Val|
|000037d0| 6c 65 79 3f 0a 58 53 65 | 6e 64 20 6d 65 20 73 6f |ley?.XSe|nd me so|
|000037e0| 6d 65 20 6d 61 69 6c 2e | 0a 58 0a 58 4d 61 72 6b |me mail.|.X.XMark|
|000037f0| 20 57 65 64 65 6c 0a 58 | 6d 61 73 74 65 72 40 72 | Wedel.X|master@r|
|00003800| 61 68 75 6c 2e 6e 65 74 | 0a 58 4f 63 74 6f 62 65 |ahul.net|.XOctobe|
|00003810| 72 20 31 38 2c 20 31 39 | 39 33 0a 45 4e 44 5f 4f |r 18, 19|93.END_O|
|00003820| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 33 |F_FILE.i|f test 3|
|00003830| 38 38 32 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |882 -ne |`wc -c <|
|00003840| 27 52 45 41 44 4d 45 27 | 60 3b 20 74 68 65 6e 0a |'README'|`; then.|
|00003850| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00003860| 22 27 52 45 41 44 4d 45 | 27 5c 22 20 75 6e 70 61 |"'README|'\" unpa|
|00003870| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00003880| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00003890| 66 20 27 52 45 41 44 4d | 45 27 0a 66 69 0a 69 66 |f 'READM|E'.fi.if|
|000038a0| 20 74 65 73 74 20 2d 66 | 20 27 54 4f 44 4f 27 20 | test -f| 'TODO' |
|000038b0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000038c0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000038d0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000038e0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000038f0| 20 66 69 6c 65 20 5c 22 | 27 54 4f 44 4f 27 5c 22 | file \"|'TODO'\"|
|00003900| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00003910| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 54 | Extract|ing \"'T|
|00003920| 4f 44 4f 27 5c 22 20 5c | 28 39 35 34 20 63 68 61 |ODO'\" \|(954 cha|
|00003930| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00003940| 2f 5e 58 2f 2f 22 20 3e | 27 54 4f 44 4f 27 20 3c |/^X//" >|'TODO' <|
|00003950| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00003960| 54 68 69 6e 67 73 20 74 | 68 61 74 20 77 6f 75 6c |Things t|hat woul|
|00003970| 64 20 62 65 20 6e 69 63 | 65 20 74 6f 20 68 61 76 |d be nic|e to hav|
|00003980| 65 20 64 6f 6e 65 2c 20 | 62 75 74 20 6d 61 79 20 |e done, |but may |
|00003990| 62 65 20 64 69 66 66 69 | 63 75 6c 74 20 74 6f 20 |be diffi|cult to |
|000039a0| 64 6f 2e 0a 58 0a 58 53 | 6f 6d 65 20 77 61 79 20 |do..X.XS|ome way |
|000039b0| 74 6f 20 74 65 6c 6c 20 | 69 6e 20 74 68 65 20 77 |to tell |in the w|
|000039c0| 69 6e 64 6f 77 20 77 68 | 61 74 20 74 68 65 20 73 |indow wh|at the s|
|000039d0| 63 61 6c 65 20 64 69 76 | 69 73 69 6f 6e 20 6c 69 |cale div|ision li|
|000039e0| 6e 65 73 20 28 61 73 0a | 58 73 65 6c 65 63 74 65 |nes (as.|Xselecte|
|000039f0| 64 20 62 79 20 74 68 65 | 20 2d 73 63 61 6c 65 29 |d by the| -scale)|
|00003a00| 20 61 72 67 75 65 6d 65 | 6e 74 20 61 72 65 2e 20 | argueme|nt are. |
|00003a10| 20 57 72 69 74 69 6e 67 | 20 74 68 65 6d 20 61 6c | Writing| them al|
|00003a20| 6f 6e 67 20 74 68 65 20 | 6c 65 66 74 0a 58 65 64 |ong the |left.Xed|
|00003a30| 67 65 20 77 6f 75 6c 64 | 20 72 65 71 75 69 72 65 |ge would| require|
|00003a40| 20 74 68 61 74 20 74 68 | 65 20 65 6e 74 69 72 65 | that th|e entire|
|00003a50| 20 67 72 61 70 68 20 62 | 65 20 72 65 64 72 61 77 | graph b|e redraw|
|00003a60| 6e 2c 20 6f 72 20 61 20 | 73 6d 61 72 74 20 77 61 |n, or a |smart wa|
|00003a70| 79 20 74 6f 0a 58 65 72 | 61 73 65 20 74 68 65 20 |y to.Xer|ase the |
|00003a80| 76 61 6c 75 65 73 20 61 | 6e 64 20 74 68 65 6e 20 |values a|nd then |
|00003a90| 72 65 64 72 61 77 20 74 | 68 65 6d 2e 20 20 50 65 |redraw t|hem. Pe|
|00003aa0| 72 68 61 70 73 20 74 68 | 65 79 20 63 61 6e 20 62 |rhaps th|ey can b|
|00003ab0| 65 20 77 72 69 74 74 65 | 6e 20 61 74 0a 58 74 68 |e writte|n at.Xth|
|00003ac0| 65 20 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |e bottom| of the |
|00003ad0| 73 63 72 65 65 6e 2c 20 | 61 73 20 61 6e 6f 74 68 |screen, |as anoth|
|00003ae0| 65 72 20 6e 75 6d 62 65 | 72 20 61 66 74 65 72 20 |er numbe|r after |
|00003af0| 74 68 65 20 73 63 61 6c | 65 20 6f 66 20 74 68 65 |the scal|e of the|
|00003b00| 20 67 72 61 70 68 2e 0a | 58 49 65 2c 20 22 64 69 | graph..|XIe, "di|
|00003b10| 73 6b 09 32 30 2f 35 22 | 20 77 6f 75 6c 64 20 73 |sk.20/5"| would s|
|00003b20| 68 6f 75 6c 64 20 74 68 | 61 74 20 74 68 65 20 73 |hould th|at the s|
|00003b30| 63 61 6c 65 20 6f 66 20 | 74 68 65 20 67 72 61 70 |cale of |the grap|
|00003b40| 68 20 69 73 20 32 30 2c | 0a 58 62 75 74 20 74 68 |h is 20,|.Xbut th|
|00003b50| 65 20 64 69 76 69 73 69 | 6f 6e 20 6c 69 6e 65 73 |e divisi|on lines|
|00003b60| 20 61 72 65 20 64 72 61 | 77 6e 20 69 6e 20 69 6e | are dra|wn in in|
|00003b70| 63 72 65 6d 65 6e 74 73 | 20 6f 66 20 35 2e 0a 58 |crements| of 5..X|
|00003b80| 0a 58 53 74 6f 72 69 6e | 67 20 61 6c 6c 20 2d 74 |.XStorin|g all -t|
|00003b90| 79 70 65 20 76 61 6c 75 | 65 73 20 66 6f 72 20 61 |ype valu|es for a|
|00003ba0| 6c 6c 20 68 6f 73 74 73 | 2c 20 61 6e 64 20 61 6c |ll hosts|, and al|
|00003bb0| 6c 6f 77 20 73 77 69 74 | 63 68 69 6e 67 20 6f 66 |low swit|ching of|
|00003bc0| 20 74 68 65 20 67 72 61 | 70 68 0a 58 74 79 70 65 | the gra|ph.Xtype|
|00003bd0| 20 28 62 79 20 6b 65 79 | 62 6f 61 72 64 29 2e 20 | (by key|board). |
|00003be0| 20 54 68 69 73 20 77 69 | 6c 6c 20 63 61 75 73 65 | This wi|ll cause|
|00003bf0| 20 6d 6f 72 65 20 6d 65 | 6d 6f 72 79 20 75 73 65 | more me|mory use|
|00003c00| 20 61 6e 64 20 70 72 6f | 62 61 62 6c 79 20 61 6c | and pro|bably al|
|00003c10| 73 6f 0a 58 6d 6f 72 65 | 20 63 70 75 20 75 73 65 |so.Xmore| cpu use|
|00003c20| 20 74 6f 20 73 65 74 20 | 61 6e 64 20 73 74 6f 72 | to set |and stor|
|00003c30| 65 20 61 6c 6c 20 74 68 | 65 73 65 20 76 61 6c 75 |e all th|ese valu|
|00003c40| 65 73 2e 0a 58 0a 58 41 | 62 69 6c 69 74 79 20 74 |es..X.XA|bility t|
|00003c50| 6f 20 68 61 76 65 20 6f | 6e 65 20 58 53 79 73 53 |o have o|ne XSysS|
|00003c60| 74 61 74 73 20 70 72 6f | 67 72 61 6d 20 63 6f 6e |tats pro|gram con|
|00003c70| 74 72 6f 6c 20 73 65 76 | 65 72 61 6c 20 77 69 6e |trol sev|eral win|
|00003c80| 64 6f 77 73 20 6f 72 20 | 73 70 6c 69 74 0a 58 74 |dows or |split.Xt|
|00003c90| 68 65 20 6f 6e 65 20 77 | 69 6e 64 6f 77 20 69 6e |he one w|indow in|
|00003ca0| 74 6f 20 73 65 76 65 72 | 61 6c 20 73 75 62 77 69 |to sever|al subwi|
|00003cb0| 6e 64 6f 77 73 2e 20 20 | 49 6e 20 74 68 69 73 20 |ndows. |In this |
|00003cc0| 77 61 79 2c 20 61 20 6d | 69 6e 69 6e 75 6d 20 61 |way, a m|ininum a|
|00003cd0| 6d 6f 75 6e 74 0a 58 6f | 66 20 73 70 61 63 65 20 |mount.Xo|f space |
|00003ce0| 61 6e 64 20 72 73 74 61 | 74 73 20 63 61 6c 6c 73 |and rsta|ts calls|
|00003cf0| 20 77 6f 75 6c 64 20 62 | 65 20 75 73 65 64 20 74 | would b|e used t|
|00003d00| 6f 20 64 69 73 70 6c 61 | 79 20 70 6f 73 73 69 62 |o displa|y possib|
|00003d10| 6c 79 20 61 6c 6c 20 74 | 68 65 0a 58 64 61 74 61 |ly all t|he.Xdata|
|00003d20| 20 67 61 74 68 65 72 65 | 64 2e 0a 45 4e 44 5f 4f | gathere|d..END_O|
|00003d30| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 39 |F_FILE.i|f test 9|
|00003d40| 35 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |54 -ne `|wc -c <'|
|00003d50| 54 4f 44 4f 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |TODO'`; |then. |
|00003d60| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 54 | echo sh|ar: \"'T|
|00003d70| 4f 44 4f 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ODO'\" u|npacked |
|00003d80| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00003d90| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 54 4f |.fi.# en|d of 'TO|
|00003da0| 44 4f 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |DO'.fi.i|f test -|
|00003db0| 66 20 27 68 65 61 64 65 | 72 73 2e 68 27 20 2d 61 |f 'heade|rs.h' -a|
|00003dc0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00003dd0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00003de0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00003df0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00003e00| 69 6c 65 20 5c 22 27 68 | 65 61 64 65 72 73 2e 68 |ile \"'h|eaders.h|
|00003e10| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00003e20| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00003e30| 22 27 68 65 61 64 65 72 | 73 2e 68 27 5c 22 20 5c |"'header|s.h'\" \|
|00003e40| 28 35 30 32 20 63 68 61 | 72 61 63 74 65 72 73 5c |(502 cha|racters\|
|00003e50| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00003e60| 27 68 65 61 64 65 72 73 | 2e 68 27 20 3c 3c 27 45 |'headers|.h' <<'E|
|00003e70| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 20 |ND_OF_FI|LE'.X/* |
|00003e80| 54 68 65 73 65 20 61 72 | 65 20 72 65 61 6c 6c 79 |These ar|e really|
|00003e90| 20 69 6e 63 6c 75 64 65 | 64 20 73 6f 20 74 68 61 | include|d so tha|
|00003ea0| 74 20 49 20 63 61 6e 20 | 75 73 65 20 67 63 63 20 |t I can |use gcc |
|00003eb0| 2d 57 61 6c 6c 20 61 6e | 64 20 6e 6f 74 20 73 65 |-Wall an|d not se|
|00003ec0| 65 0a 58 20 2a 20 77 61 | 72 6e 69 6e 67 73 20 74 |e.X * wa|rnings t|
|00003ed0| 68 61 74 20 74 68 65 73 | 65 20 61 72 65 20 75 6e |hat thes|e are un|
|00003ee0| 64 65 66 69 6e 65 64 2e | 20 20 49 66 20 79 6f 75 |defined.| If you|
|00003ef0| 72 20 73 79 73 74 65 6d | 20 68 61 73 20 66 75 6e |r system| has fun|
|00003f00| 63 74 69 6f 6e 0a 58 20 | 2a 20 70 72 6f 74 6f 74 |ction.X |* protot|
|00003f10| 79 70 65 73 2c 20 74 68 | 69 73 20 69 73 20 75 6e |ypes, th|is is un|
|00003f20| 6e 65 65 64 65 64 2e 0a | 58 20 2a 2f 0a 58 0a 58 |needed..|X */.X.X|
|00003f30| 23 69 66 64 65 66 20 5f | 5f 47 4e 55 43 5f 5f 0a |#ifdef _|_GNUC__.|
|00003f40| 58 2f 2a 20 54 68 65 73 | 65 20 64 6f 20 6e 6f 74 |X/* Thes|e do not|
|00003f50| 20 73 65 65 6d 20 74 6f | 20 62 65 20 6e 65 65 64 | seem to| be need|
|00003f60| 65 64 20 77 69 74 68 20 | 67 63 63 2d 32 2e 35 2e |ed with |gcc-2.5.|
|00003f70| 30 2e 20 20 49 6e 20 66 | 61 63 74 2c 20 68 61 76 |0. In f|act, hav|
|00003f80| 69 6e 67 0a 58 20 2a 20 | 74 68 65 6d 20 64 65 63 |ing.X * |them dec|
|00003f90| 6c 61 72 65 64 20 63 61 | 75 73 65 73 20 65 72 72 |lared ca|uses err|
|00003fa0| 6f 72 73 2e 0a 58 20 2a | 2f 0a 58 0a 58 2f 2a 0a |ors..X *|/.X.X/*.|
|00003fb0| 58 76 6f 69 64 20 20 20 | 20 70 72 69 6e 74 66 28 |Xvoid | printf(|
|00003fc0| 63 68 61 72 2a 20 2c 20 | 2e 2e 2e 29 3b 0a 58 76 |char* , |...);.Xv|
|00003fd0| 6f 69 64 20 20 20 20 70 | 75 74 73 28 63 68 61 72 |oid p|uts(char|
|00003fe0| 20 2a 29 3b 0a 58 76 6f | 69 64 20 20 20 20 66 70 | *);.Xvo|id fp|
|00003ff0| 72 69 6e 74 66 28 46 49 | 4c 45 2a 2c 20 63 68 61 |rintf(FI|LE*, cha|
|00004000| 72 20 2a 2c 20 2e 2e 2e | 29 3b 0a 58 2a 2f 0a 58 |r *, ...|);.X*/.X|
|00004010| 69 6e 74 20 20 20 20 20 | 73 6c 65 65 70 28 75 6e |int |sleep(un|
|00004020| 73 69 67 6e 65 64 29 3b | 0a 58 69 6e 74 20 20 20 |signed);|.Xint |
|00004030| 20 20 61 74 6f 69 28 63 | 68 61 72 20 2a 29 3b 0a | atoi(c|har *);.|
|00004040| 58 69 6e 74 09 67 65 74 | 68 6f 73 74 6e 61 6d 65 |Xint.get|hostname|
|00004050| 28 63 68 61 72 20 2a 2c | 20 69 6e 74 29 3b 0a 58 |(char *,| int);.X|
|00004060| 63 68 61 72 20 09 2a 73 | 74 72 63 61 74 28 63 68 |char .*s|trcat(ch|
|00004070| 61 72 20 2a 2c 20 63 68 | 61 72 2a 29 3b 0a 58 23 |ar *, ch|ar*);.X#|
|00004080| 65 6e 64 69 66 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |endif.EN|D_OF_FIL|
|00004090| 45 0a 69 66 20 74 65 73 | 74 20 35 30 32 20 2d 6e |E.if tes|t 502 -n|
|000040a0| 65 20 60 77 63 20 2d 63 | 20 3c 27 68 65 61 64 65 |e `wc -c| <'heade|
|000040b0| 72 73 2e 68 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |rs.h'`; |then. |
|000040c0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 68 | echo sh|ar: \"'h|
|000040d0| 65 61 64 65 72 73 2e 68 | 27 5c 22 20 75 6e 70 61 |eaders.h|'\" unpa|
|000040e0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|000040f0| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004100| 66 20 27 68 65 61 64 65 | 72 73 2e 68 27 0a 66 69 |f 'heade|rs.h'.fi|
|00004110| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 70 61 74 |.if test| -f 'pat|
|00004120| 63 68 6c 65 76 65 6c 2e | 68 27 20 2d 61 20 22 24 |chlevel.|h' -a "$|
|00004130| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00004140| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00004150| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00004160| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00004170| 20 5c 22 27 70 61 74 63 | 68 6c 65 76 65 6c 2e 68 | \"'patc|hlevel.h|
|00004180| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00004190| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000041a0| 22 27 70 61 74 63 68 6c | 65 76 65 6c 2e 68 27 5c |"'patchl|evel.h'\|
|000041b0| 22 20 5c 28 33 33 20 63 | 68 61 72 61 63 74 65 72 |" \(33 c|haracter|
|000041c0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000041d0| 20 3e 27 70 61 74 63 68 | 6c 65 76 65 6c 2e 68 27 | >'patch|level.h'|
|000041e0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000041f0| 0a 58 23 64 65 66 69 6e | 65 20 56 45 52 53 49 4f |.X#defin|e VERSIO|
|00004200| 4e 20 22 58 53 79 73 53 | 74 61 74 73 20 31 2e 31 |N "XSysS|tats 1.1|
|00004210| 30 22 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |0".END_O|F_FILE.i|
|00004220| 66 20 74 65 73 74 20 33 | 33 20 2d 6e 65 20 60 77 |f test 3|3 -ne `w|
|00004230| 63 20 2d 63 20 3c 27 70 | 61 74 63 68 6c 65 76 65 |c -c <'p|atchleve|
|00004240| 6c 2e 68 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |l.h'`; t|hen. |
|00004250| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 70 61 |echo sha|r: \"'pa|
|00004260| 74 63 68 6c 65 76 65 6c | 2e 68 27 5c 22 20 75 6e |tchlevel|.h'\" un|
|00004270| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004280| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004290| 20 6f 66 20 27 70 61 74 | 63 68 6c 65 76 65 6c 2e | of 'pat|chlevel.|
|000042a0| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|000042b0| 20 27 70 6f 72 74 69 6e | 67 2e 63 27 20 2d 61 20 | 'portin|g.c' -a |
|000042c0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000042d0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000042e0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000042f0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00004300| 6c 65 20 5c 22 27 70 6f | 72 74 69 6e 67 2e 63 27 |le \"'po|rting.c'|
|00004310| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004320| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004330| 27 70 6f 72 74 69 6e 67 | 2e 63 27 5c 22 20 5c 28 |'porting|.c'\" \(|
|00004340| 36 38 39 36 20 63 68 61 | 72 61 63 74 65 72 73 5c |6896 cha|racters\|
|00004350| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00004360| 27 70 6f 72 74 69 6e 67 | 2e 63 27 20 3c 3c 27 45 |'porting|.c' <<'E|
|00004370| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 23 69 6e |ND_OF_FI|LE'.X#in|
|00004380| 63 6c 75 64 65 20 3c 72 | 70 63 73 76 63 2f 72 73 |clude <r|pcsvc/rs|
|00004390| 74 61 74 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |tat.h>.X|#include|
|000043a0| 20 22 78 73 79 73 73 74 | 61 74 73 2e 68 22 0a 58 | "xsysst|ats.h".X|
|000043b0| 23 69 6e 63 6c 75 64 65 | 20 22 68 65 61 64 65 72 |#include| "header|
|000043c0| 73 2e 68 22 0a 58 0a 58 | 2f 2a 20 61 64 64 20 61 |s.h".X.X|/* add a|
|000043d0| 20 66 75 6e 63 74 69 6f | 6e 20 70 72 6f 74 6f 74 | functio|n protot|
|000043e0| 79 70 65 20 66 6f 72 20 | 63 6c 65 61 6e 20 63 6f |ype for |clean co|
|000043f0| 6d 70 69 6c 65 73 20 77 | 69 74 68 20 2d 57 61 6c |mpiles w|ith -Wal|
|00004400| 6c 20 2a 2f 0a 58 23 69 | 66 64 65 66 20 5f 5f 47 |l */.X#i|fdef __G|
|00004410| 4e 55 43 5f 5f 0a 58 69 | 6e 74 09 72 73 74 61 74 |NUC__.Xi|nt.rstat|
|00004420| 28 63 68 61 72 20 2a 2c | 20 73 74 72 75 63 74 20 |(char *,| struct |
|00004430| 73 74 61 74 73 74 69 6d | 65 20 2a 29 3b 0a 58 23 |statstim|e *);.X#|
|00004440| 65 6e 64 69 66 0a 58 0a | 58 73 74 72 75 63 74 20 |endif.X.|Xstruct |
|00004450| 73 74 61 74 73 74 69 6d | 65 09 2a 6f 75 72 5f 73 |statstim|e.*our_s|
|00004460| 74 61 74 73 3b 0a 58 73 | 74 61 74 69 63 20 69 6e |tats;.Xs|tatic in|
|00004470| 74 20 6e 65 77 5f 73 74 | 61 74 3d 30 3b 0a 58 0a |t new_st|at=0;.X.|
|00004480| 58 2f 2a 20 73 65 74 5f | 66 69 72 73 74 5f 76 61 |X/* set_|first_va|
|00004490| 6c 75 65 73 20 61 6c 6c | 6f 63 61 74 65 73 20 74 |lues all|ocates t|
|000044a0| 68 65 20 73 70 61 63 65 | 20 74 6f 20 61 63 74 75 |he space| to actu|
|000044b0| 61 6c 6c 79 20 73 74 6f | 72 65 20 74 68 65 20 76 |ally sto|re the v|
|000044c0| 61 6c 75 65 73 2c 0a 58 | 20 2a 20 61 64 64 20 74 |alues,.X| * add t|
|000044d0| 68 65 6e 20 72 65 61 64 | 73 20 69 6e 20 61 20 66 |hen read|s in a f|
|000044e0| 69 72 73 74 20 73 65 74 | 20 69 6e 74 6f 20 74 68 |irst set| into th|
|000044f0| 65 6d 2e 0a 58 20 2a 2f | 0a 58 76 6f 69 64 20 73 |em..X */|.Xvoid s|
|00004500| 65 74 5f 66 69 72 73 74 | 5f 76 61 6c 75 65 73 28 |et_first|_values(|
|00004510| 29 0a 58 7b 0a 58 09 69 | 6e 74 09 69 3b 0a 58 0a |).X{.X.i|nt.i;.X.|
|00004520| 58 09 6f 75 72 5f 73 74 | 61 74 73 20 3d 20 28 73 |X.our_st|ats = (s|
|00004530| 74 72 75 63 74 20 73 74 | 61 74 73 74 69 6d 65 20 |truct st|atstime |
|00004540| 2a 29 0a 58 09 09 6d 61 | 6c 6c 6f 63 28 73 69 7a |*).X..ma|lloc(siz|
|00004550| 65 6f 66 28 73 74 72 75 | 63 74 20 73 74 61 74 73 |eof(stru|ct stats|
|00004560| 74 69 6d 65 29 20 2a 20 | 6e 75 6d 5f 68 6f 73 74 |time) * |num_host|
|00004570| 73 20 2a 20 32 29 3b 0a | 58 09 66 6f 72 20 28 69 |s * 2);.|X.for (i|
|00004580| 3d 30 3b 20 69 3c 6e 75 | 6d 5f 68 6f 73 74 73 3b |=0; i<nu|m_hosts;|
|00004590| 20 69 2b 2b 29 0a 58 09 | 09 72 73 74 61 74 28 68 | i++).X.|.rstat(h|
|000045a0| 6f 73 74 73 5b 69 5d 2c | 20 26 6f 75 72 5f 73 74 |osts[i],| &our_st|
|000045b0| 61 74 73 5b 69 2a 32 20 | 2b 20 6e 65 77 5f 73 74 |ats[i*2 |+ new_st|
|000045c0| 61 74 5d 29 3b 0a 58 0a | 58 09 6e 65 77 5f 73 74 |at]);.X.|X.new_st|
|000045d0| 61 74 2b 2b 3b 0a 58 09 | 6e 65 77 5f 73 74 61 74 |at++;.X.|new_stat|
|000045e0| 20 25 3d 32 3b 0a 58 7d | 0a 58 0a 58 2f 2a 20 54 | %=2;.X}|.X.X/* T|
|000045f0| 68 69 73 20 73 65 74 73 | 20 74 68 65 20 73 63 61 |his sets| the sca|
|00004600| 6c 65 20 6f 66 20 73 69 | 6d 69 6c 69 61 72 20 67 |le of si|miliar g|
|00004610| 72 61 70 68 73 20 74 6f | 20 74 68 65 20 73 61 6d |raphs to| the sam|
|00004620| 65 20 76 61 6c 75 65 2e | 20 20 54 68 65 20 68 69 |e value.| The hi|
|00004630| 67 68 65 73 74 0a 58 20 | 2a 20 73 63 61 6c 65 20 |ghest.X |* scale |
|00004640| 76 61 6c 75 65 20 69 73 | 20 75 73 65 64 2e 20 20 |value is| used. |
|00004650| 54 68 65 20 67 72 61 70 | 68 20 61 72 67 75 65 6d |The grap|h arguem|
|00004660| 65 6e 74 20 74 68 61 74 | 20 69 73 20 70 61 73 73 |ent that| is pass|
|00004670| 65 64 20 69 73 20 74 68 | 65 20 67 72 61 70 68 0a |ed is th|e graph.|
|00004680| 58 20 2a 20 76 61 6c 75 | 65 20 74 68 61 74 20 68 |X * valu|e that h|
|00004690| 61 73 20 6a 75 73 74 20 | 63 68 61 6e 67 65 64 2e |as just |changed.|
|000046a0| 20 20 49 74 20 6d 61 79 | 20 6f 72 20 6d 61 79 20 | It may| or may |
|000046b0| 6e 6f 74 20 62 65 20 6d | 6f 72 65 20 65 66 66 69 |not be m|ore effi|
|000046c0| 63 69 65 6e 74 20 74 6f | 20 77 61 69 74 0a 58 20 |cient to| wait.X |
|000046d0| 2a 20 75 6e 74 69 6c 20 | 61 6c 6c 20 74 68 65 20 |* until |all the |
|000046e0| 67 72 61 70 68 73 20 68 | 61 76 65 20 63 68 61 6e |graphs h|ave chan|
|000046f0| 67 65 64 20 73 63 61 6c | 65 20 62 65 66 6f 72 65 |ged scal|e before|
|00004700| 20 67 6f 69 6e 67 20 74 | 68 72 6f 75 67 68 20 61 | going t|hrough a|
|00004710| 6e 64 20 0a 58 20 2a 20 | 73 79 6e 63 68 72 6f 6e |nd .X * |synchron|
|00004720| 69 7a 69 6e 67 20 74 68 | 65 20 6f 74 68 65 72 20 |izing th|e other |
|00004730| 67 72 61 70 68 73 20 74 | 6f 20 6d 61 74 63 68 2e |graphs t|o match.|
|00004740| 20 20 49 74 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 | It dep|ends on |
|00004750| 74 68 65 20 63 69 72 63 | 75 6d 73 74 61 6e 63 65 |the circ|umstance|
|00004760| 73 2e 0a 58 20 2a 20 6f | 66 20 72 65 73 63 61 6c |s..X * o|f rescal|
|00004770| 69 6e 67 2e 0a 58 20 2a | 20 53 69 6e 63 65 20 61 |ing..X *| Since a|
|00004780| 6e 79 20 63 61 6c 6c 20 | 74 6f 20 74 68 69 73 20 |ny call |to this |
|00004790| 66 75 6e 63 74 69 6f 6e | 20 6d 65 61 6e 73 20 74 |function| means t|
|000047a0| 68 61 74 20 74 68 65 20 | 73 63 61 6c 65 20 68 61 |hat the |scale ha|
|000047b0| 73 20 63 68 61 6e 67 65 | 64 2c 0a 58 20 2a 20 61 |s change|d,.X * a|
|000047c0| 20 72 65 64 72 61 77 20 | 77 69 6c 6c 20 68 61 70 | redraw |will hap|
|000047d0| 70 65 6e 20 61 74 20 73 | 6f 6d 65 20 70 6f 69 6e |pen at s|ome poin|
|000047e0| 74 20 61 66 74 65 72 20 | 74 68 65 20 72 65 74 75 |t after |the retu|
|000047f0| 72 6e 2e 0a 58 20 2a 20 | 49 74 20 6d 61 79 20 61 |rn..X * |It may a|
|00004800| 6c 73 6f 20 62 65 20 62 | 65 74 74 65 72 20 74 6f |lso be b|etter to|
|00004810| 20 6d 61 6b 65 20 69 74 | 20 73 6f 20 74 68 61 74 | make it| so that|
|00004820| 20 61 20 72 65 2d 64 72 | 61 77 20 77 69 6c 6c 20 | a re-dr|aw will |
|00004830| 6f 6e 6c 79 20 62 65 20 | 64 6f 6e 65 0a 58 20 2a |only be |done.X *|
|00004840| 20 69 66 20 74 68 65 20 | 73 63 61 6c 65 20 61 63 | if the |scale ac|
|00004850| 74 75 61 6c 6c 79 20 63 | 68 61 6e 67 65 73 2e 20 |tually c|hanges. |
|00004860| 20 52 69 67 68 74 20 6e | 6f 77 2c 20 61 20 64 6f | Right n|ow, a do|
|00004870| 77 6e 73 63 61 6c 65 20 | 61 74 74 65 6d 70 74 20 |wnscale |attempt |
|00004880| 6d 61 79 0a 58 20 2a 20 | 62 65 20 6d 61 64 65 2c |may.X * |be made,|
|00004890| 20 62 75 74 20 62 65 63 | 61 75 73 65 20 74 68 65 | but bec|ause the|
|000048a0| 20 73 63 61 6c 65 73 20 | 61 72 65 20 73 79 6e 63 | scales |are sync|
|000048b0| 68 72 6f 6e 69 7a 65 64 | 2c 20 74 68 65 20 73 63 |hronized|, the sc|
|000048c0| 61 6c 65 20 64 6f 65 73 | 20 6e 6f 74 0a 58 20 2a |ale does| not.X *|
|000048d0| 20 63 68 61 6e 67 65 2e | 20 20 48 6f 77 65 76 65 | change.| Howeve|
|000048e0| 72 2c 20 69 74 20 77 69 | 6c 6c 20 72 65 2d 64 72 |r, it wi|ll re-dr|
|000048f0| 61 77 20 74 68 65 20 77 | 69 6e 64 6f 77 20 77 68 |aw the w|indow wh|
|00004900| 65 6e 20 74 68 65 72 65 | 20 77 61 73 20 6e 6f 20 |en there| was no |
|00004910| 6e 65 65 64 0a 58 20 2a | 20 74 6f 2e 0a 58 20 2a |need.X *| to..X *|
|00004920| 2f 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 20 73 |/.Xstati|c void s|
|00004930| 79 6e 63 5f 73 63 61 6c | 65 73 28 73 74 72 75 63 |ync_scal|es(struc|
|00004940| 74 20 67 72 61 70 68 5f | 69 6e 66 6f 20 67 72 61 |t graph_|info gra|
|00004950| 70 68 29 0a 58 7b 0a 58 | 09 69 6e 74 20 6d 61 78 |ph).X{.X|.int max|
|00004960| 3d 30 2c 6e 75 6d 5f 6d | 61 74 63 68 3d 30 2c 69 |=0,num_m|atch=0,i|
|00004970| 3b 0a 58 0a 58 09 66 6f | 72 20 28 69 3d 30 3b 20 |;.X.X.fo|r (i=0; |
|00004980| 69 3c 6e 75 6d 5f 67 72 | 61 70 68 73 3b 20 69 2b |i<num_gr|aphs; i+|
|00004990| 2b 29 20 0a 58 09 20 20 | 20 20 69 66 20 28 67 72 |+) .X. | if (gr|
|000049a0| 61 70 68 73 5b 69 5d 2e | 74 79 70 65 20 3d 3d 20 |aphs[i].|type == |
|000049b0| 67 72 61 70 68 2e 74 79 | 70 65 29 20 7b 0a 58 09 |graph.ty|pe) {.X.|
|000049c0| 09 6e 75 6d 5f 6d 61 74 | 63 68 2b 2b 3b 0a 58 09 |.num_mat|ch++;.X.|
|000049d0| 09 69 66 20 28 67 72 61 | 70 68 73 5b 69 5d 2e 74 |.if (gra|phs[i].t|
|000049e0| 72 75 65 5f 73 63 61 6c | 65 3e 6d 61 78 29 0a 58 |rue_scal|e>max).X|
|000049f0| 09 09 20 20 20 20 6d 61 | 78 3d 67 72 61 70 68 73 |.. ma|x=graphs|
|00004a00| 5b 69 5d 2e 74 72 75 65 | 5f 73 63 61 6c 65 3b 0a |[i].true|_scale;.|
|00004a10| 58 09 20 20 20 20 7d 0a | 58 09 69 66 20 28 6e 75 |X. }.|X.if (nu|
|00004a20| 6d 5f 6d 61 74 63 68 3e | 31 29 20 7b 0a 58 09 09 |m_match>|1) {.X..|
|00004a30| 66 6f 72 20 28 69 3d 30 | 3b 20 69 3c 6e 75 6d 5f |for (i=0|; i<num_|
|00004a40| 67 72 61 70 68 73 3b 20 | 69 2b 2b 29 0a 58 09 09 |graphs; |i++).X..|
|00004a50| 20 20 20 20 69 66 20 28 | 67 72 61 70 68 73 5b 69 | if (|graphs[i|
|00004a60| 5d 2e 74 79 70 65 20 3d | 3d 20 67 72 61 70 68 2e |].type =|= graph.|
|00004a70| 74 79 70 65 29 0a 58 09 | 09 09 67 72 61 70 68 73 |type).X.|..graphs|
|00004a80| 5b 69 5d 2e 73 63 61 6c | 65 20 3d 20 6d 61 78 3b |[i].scal|e = max;|
|00004a90| 0a 58 09 7d 0a 58 7d 0a | 58 0a 58 2f 2a 20 72 65 |.X.}.X}.|X.X/* re|
|00004aa0| 74 75 72 6e 20 76 61 6c | 75 65 20 69 73 20 69 66 |turn val|ue is if|
|00004ab0| 20 77 65 20 72 65 64 72 | 65 77 20 74 68 65 20 67 | we redr|ew the g|
|00004ac0| 72 61 70 68 20 28 74 72 | 75 65 20 69 66 20 77 65 |raph (tr|ue if we|
|00004ad0| 20 64 69 64 29 20 2a 2f | 0a 58 69 6e 74 20 73 65 | did) */|.Xint se|
|00004ae0| 74 5f 76 61 6c 75 65 73 | 28 29 0a 58 7b 0a 58 09 |t_values|().X{.X.|
|00004af0| 69 6e 74 20 69 2c 67 72 | 61 70 68 5f 72 65 64 72 |int i,gr|aph_redr|
|00004b00| 61 77 5f 6e 65 65 64 65 | 64 3d 46 41 4c 53 45 2c |aw_neede|d=FALSE,|
|00004b10| 6e 65 77 73 74 61 74 2c | 6f 6c 64 73 74 61 74 3b |newstat,|oldstat;|
|00004b20| 0a 58 09 73 74 61 74 69 | 63 20 69 6e 74 20 6e 75 |.X.stati|c int nu|
|00004b30| 6d 5f 74 69 63 6b 73 3d | 30 3b 0a 58 0a 58 09 6e |m_ticks=|0;.X.X.n|
|00004b40| 75 6d 5f 74 69 63 6b 73 | 2b 2b 3b 0a 58 09 66 6f |um_ticks|++;.X.fo|
|00004b50| 72 20 28 69 3d 30 3b 20 | 69 3c 6e 75 6d 5f 68 6f |r (i=0; |i<num_ho|
|00004b60| 73 74 73 3b 20 69 2b 2b | 29 0a 58 09 09 72 73 74 |sts; i++|).X..rst|
|00004b70| 61 74 28 68 6f 73 74 73 | 5b 69 5d 2c 20 26 6f 75 |at(hosts|[i], &ou|
|00004b80| 72 5f 73 74 61 74 73 5b | 69 2a 32 20 2b 20 6e 65 |r_stats[|i*2 + ne|
|00004b90| 77 5f 73 74 61 74 5d 29 | 3b 0a 58 0a 58 09 6e 65 |w_stat])|;.X.X.ne|
|00004ba0| 77 5f 73 74 61 74 2b 2b | 3b 0a 58 09 6e 65 77 5f |w_stat++|;.X.new_|
|00004bb0| 73 74 61 74 20 25 3d 20 | 32 3b 0a 58 09 70 6f 69 |stat %= |2;.X.poi|
|00004bc0| 6e 74 5f 70 6f 73 2b 2b | 3b 0a 58 09 70 6f 69 6e |nt_pos++|;.X.poin|
|00004bd0| 74 5f 70 6f 73 20 25 3d | 20 77 69 64 74 68 3b 0a |t_pos %=| width;.|
|00004be0| 58 09 66 6f 72 20 28 69 | 3d 30 3b 20 69 3c 6e 75 |X.for (i|=0; i<nu|
|00004bf0| 6d 5f 67 72 61 70 68 73 | 3b 20 69 2b 2b 29 20 7b |m_graphs|; i++) {|
|00004c00| 0a 58 09 20 20 20 20 6e | 65 77 73 74 61 74 20 3d |.X. n|ewstat =|
|00004c10| 20 67 72 61 70 68 73 5b | 69 5d 2e 68 6f 73 74 5f | graphs[|i].host_|
|00004c20| 6f 66 66 73 65 74 20 2a | 20 32 20 2b 20 28 28 31 |offset *| 2 + ((1|
|00004c30| 20 2b 20 6e 65 77 5f 73 | 74 61 74 29 20 25 20 32 | + new_s|tat) % 2|
|00004c40| 29 3b 0a 58 09 20 20 20 | 20 6f 6c 64 73 74 61 74 |);.X. | oldstat|
|00004c50| 20 3d 20 67 72 61 70 68 | 73 5b 69 5d 2e 68 6f 73 | = graph|s[i].hos|
|00004c60| 74 5f 6f 66 66 73 65 74 | 20 2a 20 32 20 2b 20 6e |t_offset| * 2 + n|
|00004c70| 65 77 5f 73 74 61 74 3b | 0a 58 0a 58 09 20 20 20 |ew_stat;|.X.X. |
|00004c80| 20 73 77 69 74 63 68 20 | 28 67 72 61 70 68 73 5b | switch |(graphs[|
|00004c90| 69 5d 2e 74 79 70 65 29 | 20 7b 0a 58 09 09 63 61 |i].type)| {.X..ca|
|00004ca0| 73 65 20 43 50 55 3a 20 | 7b 0a 58 09 09 09 69 6e |se CPU: |{.X...in|
|00004cb0| 74 09 6a 5b 34 5d 2c 6b | 3b 0a 58 0a 58 09 09 09 |t.j[4],k|;.X.X...|
|00004cc0| 66 6f 72 20 28 6b 3d 30 | 3b 20 6b 3c 34 3b 20 6b |for (k=0|; k<4; k|
|00004cd0| 2b 2b 29 0a 58 09 09 09 | 09 6a 5b 6b 5d 20 3d 20 |++).X...|.j[k] = |
|00004ce0| 6f 75 72 5f 73 74 61 74 | 73 5b 6e 65 77 73 74 61 |our_stat|s[newsta|
|00004cf0| 74 5d 2e 63 70 5f 74 69 | 6d 65 5b 6b 5d 20 2d 20 |t].cp_ti|me[k] - |
|00004d00| 6f 75 72 5f 73 74 61 74 | 73 5b 6f 6c 64 73 74 61 |our_stat|s[oldsta|
|00004d10| 74 5d 2e 63 70 5f 74 69 | 6d 65 5b 6b 5d 3b 0a 58 |t].cp_ti|me[k];.X|
|00004d20| 09 09 09 70 6f 69 6e 74 | 73 5b 69 5d 5b 70 6f 69 |...point|s[i][poi|
|00004d30| 6e 74 5f 70 6f 73 5d 20 | 3d 20 31 30 30 20 2d 20 |nt_pos] |= 100 - |
|00004d40| 0a 58 09 09 09 28 31 30 | 30 20 2a 20 6a 5b 33 5d |.X...(10|0 * j[3]|
|00004d50| 29 20 2f 20 28 6a 5b 30 | 5d 2b 6a 5b 31 5d 2b 6a |) / (j[0|]+j[1]+j|
|00004d60| 5b 32 5d 2b 6a 5b 33 5d | 29 3b 0a 58 09 09 09 62 |[2]+j[3]|);.X...b|
|00004d70| 72 65 61 6b 3b 0a 58 09 | 09 7d 0a 58 09 09 63 61 |reak;.X.|.}.X..ca|
|00004d80| 73 65 20 50 41 43 4b 45 | 54 53 3a 0a 58 09 09 09 |se PACKE|TS:.X...|
|00004d90| 70 6f 69 6e 74 73 5b 69 | 5d 5b 70 6f 69 6e 74 5f |points[i|][point_|
|00004da0| 70 6f 73 5d 20 3d 20 28 | 6f 75 72 5f 73 74 61 74 |pos] = (|our_stat|
|00004db0| 73 5b 6e 65 77 73 74 61 | 74 5d 2e 69 66 5f 69 70 |s[newsta|t].if_ip|
|00004dc0| 61 63 6b 65 74 73 0a 58 | 09 09 09 09 20 2d 20 6f |ackets.X|.... - o|
|00004dd0| 75 72 5f 73 74 61 74 73 | 5b 6f 6c 64 73 74 61 74 |ur_stats|[oldstat|
|00004de0| 5d 2e 69 66 5f 69 70 61 | 63 6b 65 74 73 29 20 2f |].if_ipa|ckets) /|
|00004df0| 20 73 6c 65 65 70 5f 74 | 69 6d 65 3b 0a 58 09 09 | sleep_t|ime;.X..|
|00004e00| 09 62 72 65 61 6b 3b 0a | 58 09 09 63 61 73 65 20 |.break;.|X..case |
|00004e10| 50 41 47 45 3a 0a 58 09 | 09 09 70 6f 69 6e 74 73 |PAGE:.X.|..points|
|00004e20| 5b 69 5d 5b 70 6f 69 6e | 74 5f 70 6f 73 5d 20 3d |[i][poin|t_pos] =|
|00004e30| 20 6f 75 72 5f 73 74 61 | 74 73 5b 6e 65 77 73 74 | our_sta|ts[newst|
|00004e40| 61 74 5d 2e 76 5f 70 67 | 70 67 69 6e 0a 58 09 09 |at].v_pg|pgin.X..|
|00004e50| 09 09 20 2d 20 6f 75 72 | 5f 73 74 61 74 73 5b 6f |.. - our|_stats[o|
|00004e60| 6c 64 73 74 61 74 5d 2e | 76 5f 70 67 70 67 69 6e |ldstat].|v_pgpgin|
|00004e70| 3b 0a 58 09 09 09 62 72 | 65 61 6b 3b 0a 58 09 09 |;.X...br|eak;.X..|
|00004e80| 63 61 73 65 20 53 57 41 | 50 3a 0a 58 09 09 09 70 |case SWA|P:.X...p|
|00004e90| 6f 69 6e 74 73 5b 69 5d | 5b 70 6f 69 6e 74 5f 70 |oints[i]|[point_p|
|00004ea0| 6f 73 5d 20 3d 20 6f 75 | 72 5f 73 74 61 74 73 5b |os] = ou|r_stats[|
|00004eb0| 6e 65 77 73 74 61 74 5d | 2e 76 5f 70 73 77 70 69 |newstat]|.v_pswpi|
|00004ec0| 6e 0a 58 09 09 09 09 20 | 2d 20 6f 75 72 5f 73 74 |n.X.... |- our_st|
|00004ed0| 61 74 73 5b 6f 6c 64 73 | 74 61 74 5d 2e 76 5f 70 |ats[olds|tat].v_p|
|00004ee0| 73 77 70 69 6e 3b 0a 58 | 09 09 09 62 72 65 61 6b |swpin;.X|...break|
|00004ef0| 3b 0a 58 09 09 63 61 73 | 65 20 49 4e 54 3a 0a 58 |;.X..cas|e INT:.X|
|00004f00| 09 09 09 70 6f 69 6e 74 | 73 5b 69 5d 5b 70 6f 69 |...point|s[i][poi|
|00004f10| 6e 74 5f 70 6f 73 5d 20 | 3d 20 28 28 73 69 67 6e |nt_pos] |= ((sign|
|00004f20| 65 64 29 6f 75 72 5f 73 | 74 61 74 73 5b 6e 65 77 |ed)our_s|tats[new|
|00004f30| 73 74 61 74 5d 2e 76 5f | 69 6e 74 72 0a 58 09 09 |stat].v_|intr.X..|
|00004f40| 09 09 20 2d 20 28 73 69 | 67 6e 65 64 29 6f 75 72 |.. - (si|gned)our|
|00004f50| 5f 73 74 61 74 73 5b 6f | 6c 64 73 74 61 74 5d 2e |_stats[o|ldstat].|
|00004f60| 76 5f 69 6e 74 72 29 2f | 73 6c 65 65 70 5f 74 69 |v_intr)/|sleep_ti|
|00004f70| 6d 65 3b 0a 58 09 09 09 | 69 66 20 28 70 6f 69 6e |me;.X...|if (poin|
|00004f80| 74 73 5b 69 5d 5b 70 6f | 69 6e 74 5f 70 6f 73 5d |ts[i][po|int_pos]|
|00004f90| 20 3c 20 30 29 0a 58 09 | 09 09 09 70 6f 69 6e 74 | < 0).X.|...point|
|00004fa0| 73 5b 69 5d 5b 70 6f 69 | 6e 74 5f 70 6f 73 5d 20 |s[i][poi|nt_pos] |
|00004fb0| 3d 20 30 3b 0a 58 09 09 | 09 62 72 65 61 6b 3b 0a |= 0;.X..|.break;.|
|00004fc0| 58 09 09 63 61 73 65 20 | 44 49 53 4b 3a 0a 58 09 |X..case |DISK:.X.|
|00004fd0| 09 09 70 6f 69 6e 74 73 | 5b 69 5d 5b 70 6f 69 6e |..points|[i][poin|
|00004fe0| 74 5f 70 6f 73 5d 20 3d | 20 28 6f 75 72 5f 73 74 |t_pos] =| (our_st|
|00004ff0| 61 74 73 5b 6e 65 77 73 | 74 61 74 5d 2e 64 6b 5f |ats[news|tat].dk_|
|00005000| 78 66 65 72 5b 30 5d 0a | 58 09 09 09 09 2b 6f 75 |xfer[0].|X....+ou|
|00005010| 72 5f 73 74 61 74 73 5b | 6e 65 77 73 74 61 74 5d |r_stats[|newstat]|
|00005020| 2e 64 6b 5f 78 66 65 72 | 5b 31 5d 0a 58 09 09 09 |.dk_xfer|[1].X...|
|00005030| 09 2b 6f 75 72 5f 73 74 | 61 74 73 5b 6e 65 77 73 |.+our_st|ats[news|
|00005040| 74 61 74 5d 2e 64 6b 5f | 78 66 65 72 5b 32 5d 0a |tat].dk_|xfer[2].|
|00005050| 58 09 09 09 09 2b 6f 75 | 72 5f 73 74 61 74 73 5b |X....+ou|r_stats[|
|00005060| 6e 65 77 73 74 61 74 5d | 2e 64 6b 5f 78 66 65 72 |newstat]|.dk_xfer|
|00005070| 5b 33 5d 0a 58 09 09 09 | 09 2d 6f 75 72 5f 73 74 |[3].X...|.-our_st|
|00005080| 61 74 73 5b 6f 6c 64 73 | 74 61 74 5d 2e 64 6b 5f |ats[olds|tat].dk_|
|00005090| 78 66 65 72 5b 30 5d 0a | 58 09 09 09 09 2d 6f 75 |xfer[0].|X....-ou|
|000050a0| 72 5f 73 74 61 74 73 5b | 6f 6c 64 73 74 61 74 5d |r_stats[|oldstat]|
|000050b0| 2e 64 6b 5f 78 66 65 72 | 5b 31 5d 0a 58 09 09 09 |.dk_xfer|[1].X...|
|000050c0| 09 2d 6f 75 72 5f 73 74 | 61 74 73 5b 6f 6c 64 73 |.-our_st|ats[olds|
|000050d0| 74 61 74 5d 2e 64 6b 5f | 78 66 65 72 5b 32 5d 0a |tat].dk_|xfer[2].|
|000050e0| 58 09 09 09 09 2d 6f 75 | 72 5f 73 74 61 74 73 5b |X....-ou|r_stats[|
|000050f0| 6f 6c 64 73 74 61 74 5d | 2e 64 6b 5f 78 66 65 72 |oldstat]|.dk_xfer|
|00005100| 5b 33 5d 29 0a 58 09 09 | 09 09 2f 73 6c 65 65 70 |[3]).X..|../sleep|
|00005110| 5f 74 69 6d 65 3b 0a 58 | 09 09 09 62 72 65 61 6b |_time;.X|...break|
|00005120| 3b 0a 58 09 09 63 61 73 | 65 20 43 4f 4e 54 45 58 |;.X..cas|e CONTEX|
|00005130| 54 3a 0a 58 09 09 09 70 | 6f 69 6e 74 73 5b 69 5d |T:.X...p|oints[i]|
|00005140| 5b 70 6f 69 6e 74 5f 70 | 6f 73 5d 20 3d 20 28 6f |[point_p|os] = (o|
|00005150| 75 72 5f 73 74 61 74 73 | 5b 6e 65 77 73 74 61 74 |ur_stats|[newstat|
|00005160| 5d 2e 76 5f 73 77 74 63 | 68 0a 58 09 09 09 09 20 |].v_swtc|h.X.... |
|00005170| 2d 20 6f 75 72 5f 73 74 | 61 74 73 5b 6f 6c 64 73 |- our_st|ats[olds|
|00005180| 74 61 74 5d 2e 76 5f 73 | 77 74 63 68 29 2f 73 6c |tat].v_s|wtch)/sl|
|00005190| 65 65 70 5f 74 69 6d 65 | 3b 0a 58 09 09 09 62 72 |eep_time|;.X...br|
|000051a0| 65 61 6b 3b 0a 58 0a 58 | 09 09 2f 2a 20 4c 6f 61 |eak;.X.X|../* Loa|
|000051b0| 64 20 61 76 65 72 61 67 | 65 73 20 67 65 74 20 68 |d averag|es get h|
|000051c0| 61 6e 64 6c 65 73 20 61 | 20 62 69 74 20 64 69 66 |andles a| bit dif|
|000051d0| 66 65 72 65 6e 74 6c 79 | 2e 20 20 42 79 20 64 65 |ferently|. By de|
|000051e0| 66 61 75 6c 74 2c 0a 58 | 09 09 20 2a 20 64 69 76 |fault,.X|.. * div|
|000051f0| 69 64 69 67 6e 20 74 68 | 65 20 61 76 65 6e 72 75 |idign th|e avenru|
|00005200| 6e 5b 5d 20 62 79 20 32 | 35 36 20 67 65 74 73 20 |n[] by 2|56 gets |
|00005210| 79 6f 75 20 74 68 65 20 | 6c 6f 61 64 20 61 76 65 |you the |load ave|
|00005220| 72 61 67 65 2e 0a 58 09 | 09 20 2a 20 48 6f 77 65 |rage..X.|. * Howe|
|00005230| 76 65 72 2c 20 6f 66 74 | 65 6e 20 6c 6f 61 64 20 |ver, oft|en load |
|00005240| 61 76 65 72 61 67 65 20 | 69 73 20 66 61 69 72 6c |average |is fairl|
|00005250| 79 20 6c 6f 77 20 2d 20 | 75 6e 64 65 72 20 35 2e |y low - |under 5.|
|00005260| 0a 58 09 09 20 2a 20 54 | 68 69 73 20 64 6f 65 73 |.X.. * T|his does|
|00005270| 20 6e 6f 74 20 67 69 76 | 65 20 76 65 72 79 20 67 | not giv|e very g|
|00005280| 6f 6f 64 20 72 65 73 6f | 6c 75 74 69 6f 6e 20 69 |ood reso|lution i|
|00005290| 6e 20 64 65 63 69 6d 61 | 6c 20 66 6f 72 6d 2e 0a |n decima|l form..|
|000052a0| 58 09 09 20 2a 20 53 6f | 20 69 74 20 69 73 20 6d |X.. * So| it is m|
|000052b0| 75 6c 74 69 70 6c 69 65 | 64 20 62 79 20 4c 4f 41 |ultiplie|d by LOA|
|000052c0| 44 5f 46 41 43 54 4f 52 | 20 61 6e 64 20 74 68 65 |D_FACTOR| and the|
|000052d0| 6e 20 64 69 76 69 64 65 | 64 2e 0a 58 09 09 20 2a |n divide|d..X.. *|
|000052e0| 20 46 6f 72 20 73 63 61 | 6c 65 2c 20 74 68 65 20 | For sca|le, the |
|000052f0| 73 61 6d 65 20 74 68 69 | 6e 67 20 69 73 20 74 72 |same thi|ng is tr|
|00005300| 75 65 2e 20 20 57 68 65 | 6e 20 64 69 73 70 6c 61 |ue. Whe|n displa|
|00005310| 79 20 74 68 65 0a 58 09 | 09 20 2a 20 6c 65 67 65 |y the.X.|. * lege|
|00005320| 6e 64 20 61 74 20 74 68 | 65 20 62 6f 74 74 6f 6d |nd at th|e bottom|
|00005330| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 2c 20 | of the |screen, |
|00005340| 73 63 61 6c 65 20 69 73 | 20 74 68 65 6e 0a 58 09 |scale is| then.X.|
|00005350| 09 20 2a 20 64 69 76 69 | 64 65 64 20 62 79 20 4c |. * divi|ded by L|
|00005360| 4f 41 44 5f 46 41 43 54 | 4f 52 2e 20 20 49 66 20 |OAD_FACT|OR. If |
|00005370| 4c 4f 41 44 5f 46 41 43 | 54 4f 52 20 69 73 20 31 |LOAD_FAC|TOR is 1|
|00005380| 30 30 2c 20 69 73 0a 58 | 09 09 20 2a 20 65 66 66 |00, is.X|.. * eff|
|00005390| 65 63 74 69 76 65 6c 79 | 20 6b 65 65 70 73 20 74 |ectively| keeps t|
|000053a0| 77 6f 20 64 65 63 69 6d | 61 6c 20 70 6f 69 6e 74 |wo decim|al point|
|000053b0| 73 2c 20 6d 61 6b 69 6e | 67 20 66 6f 72 0a 58 09 |s, makin|g for.X.|
|000053c0| 09 20 2a 20 61 20 66 61 | 69 72 6c 79 20 66 69 6e |. * a fa|irly fin|
|000053d0| 65 20 67 72 61 70 68 2e | 0a 58 09 09 20 2a 20 67 |e graph.|.X.. * g|
|000053e0| 72 61 70 68 73 5b 69 5d | 2e 73 63 61 6c 65 5f 6d |raphs[i]|.scale_m|
|000053f0| 75 6c 74 20 68 61 73 20 | 74 68 65 20 73 61 6d 65 |ult has |the same|
|00005400| 20 76 61 6c 75 65 20 61 | 73 20 4c 4f 41 44 5f 46 | value a|s LOAD_F|
|00005410| 41 43 54 4f 52 0a 58 09 | 09 20 2a 20 66 6f 72 20 |ACTOR.X.|. * for |
|00005420| 74 68 65 20 6c 6f 61 64 | 20 61 76 65 72 61 67 65 |the load| average|
|00005430| 20 67 72 61 70 68 73 2e | 0a 58 09 09 20 2a 2f 0a | graphs.|.X.. */.|
|00005440| 58 09 09 63 61 73 65 20 | 4c 4f 41 44 31 3a 0a 58 |X..case |LOAD1:.X|
|00005450| 09 09 09 70 6f 69 6e 74 | 73 5b 69 5d 5b 70 6f 69 |...point|s[i][poi|
|00005460| 6e 74 5f 70 6f 73 5d 20 | 3d 0a 58 09 09 09 20 20 |nt_pos] |=.X... |
|00005470| 20 20 28 6f 75 72 5f 73 | 74 61 74 73 5b 6e 65 77 | (our_s|tats[new|
|00005480| 73 74 61 74 5d 2e 61 76 | 65 6e 72 75 6e 5b 30 5d |stat].av|enrun[0]|
|00005490| 20 2a 20 4c 4f 41 44 5f | 46 41 43 54 4f 52 29 20 | * LOAD_|FACTOR) |
|000054a0| 2f 20 32 35 36 3b 0a 58 | 09 09 09 62 72 65 61 6b |/ 256;.X|...break|
|000054b0| 3b 0a 58 09 09 63 61 73 | 65 20 4c 4f 41 44 35 3a |;.X..cas|e LOAD5:|
|000054c0| 0a 58 09 09 09 70 6f 69 | 6e 74 73 5b 69 5d 5b 70 |.X...poi|nts[i][p|
|000054d0| 6f 69 6e 74 5f 70 6f 73 | 5d 20 3d 0a 58 09 09 09 |oint_pos|] =.X...|
|000054e0| 20 20 20 20 28 6f 75 72 | 5f 73 74 61 74 73 5b 6e | (our|_stats[n|
|000054f0| 65 77 73 74 61 74 5d 2e | 61 76 65 6e 72 75 6e 5b |ewstat].|avenrun[|
|00005500| 31 5d 20 2a 20 4c 4f 41 | 44 5f 46 41 43 54 4f 52 |1] * LOA|D_FACTOR|
|00005510| 29 20 2f 20 32 35 36 3b | 0a 58 09 09 09 62 72 65 |) / 256;|.X...bre|
|00005520| 61 6b 3b 0a 58 09 09 63 | 61 73 65 20 4c 4f 41 44 |ak;.X..c|ase LOAD|
|00005530| 31 35 3a 0a 58 09 09 09 | 70 6f 69 6e 74 73 5b 69 |15:.X...|points[i|
|00005540| 5d 5b 70 6f 69 6e 74 5f | 70 6f 73 5d 20 3d 0a 58 |][point_|pos] =.X|
|00005550| 09 09 09 20 20 20 20 28 | 6f 75 72 5f 73 74 61 74 |... (|our_stat|
|00005560| 73 5b 6e 65 77 73 74 61 | 74 5d 2e 61 76 65 6e 72 |s[newsta|t].avenr|
|00005570| 75 6e 5b 32 5d 20 2a 20 | 4c 4f 41 44 5f 46 41 43 |un[2] * |LOAD_FAC|
|00005580| 54 4f 52 29 20 2f 20 32 | 35 36 3b 0a 58 09 09 09 |TOR) / 2|56;.X...|
|00005590| 62 72 65 61 6b 3b 0a 58 | 09 09 63 61 73 65 20 43 |break;.X|..case C|
|000055a0| 4f 4c 4c 3a 0a 58 09 09 | 09 70 6f 69 6e 74 73 5b |OLL:.X..|.points[|
|000055b0| 69 5d 5b 70 6f 69 6e 74 | 5f 70 6f 73 5d 20 3d 20 |i][point|_pos] = |
|000055c0| 6f 75 72 5f 73 74 61 74 | 73 5b 6e 65 77 73 74 61 |our_stat|s[newsta|
|000055d0| 74 5d 2e 69 66 5f 63 6f | 6c 6c 69 73 69 6f 6e 73 |t].if_co|llisions|
|000055e0| 0a 58 09 09 09 09 20 2d | 20 6f 75 72 5f 73 74 61 |.X.... -| our_sta|
|000055f0| 74 73 5b 6f 6c 64 73 74 | 61 74 5d 2e 69 66 5f 63 |ts[oldst|at].if_c|
|00005600| 6f 6c 6c 69 73 69 6f 6e | 73 3b 0a 58 09 09 09 62 |ollision|s;.X...b|
|00005610| 72 65 61 6b 3b 0a 58 09 | 09 63 61 73 65 20 45 52 |reak;.X.|.case ER|
|00005620| 52 4f 52 53 3a 0a 58 09 | 09 09 70 6f 69 6e 74 73 |RORS:.X.|..points|
|00005630| 5b 69 5d 5b 70 6f 69 6e | 74 5f 70 6f 73 5d 20 3d |[i][poin|t_pos] =|
|00005640| 20 6f 75 72 5f 73 74 61 | 74 73 5b 6e 65 77 73 74 | our_sta|ts[newst|
|00005650| 61 74 5d 2e 69 66 5f 69 | 65 72 72 6f 72 73 0a 58 |at].if_i|errors.X|
|00005660| 09 09 09 09 20 2d 20 6f | 75 72 5f 73 74 61 74 73 |.... - o|ur_stats|
|00005670| 5b 6f 6c 64 73 74 61 74 | 5d 2e 69 66 5f 69 65 72 |[oldstat|].if_ier|
|00005680| 72 6f 72 73 3b 0a 58 09 | 09 09 62 72 65 61 6b 3b |rors;.X.|..break;|
|00005690| 0a 58 09 09 64 65 66 61 | 75 6c 74 3a 0a 58 09 09 |.X..defa|ult:.X..|
|000056a0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|000056b0| 22 55 6e 6b 6e 6f 77 6e | 20 67 72 61 70 68 20 74 |"Unknown| graph t|
|000056c0| 79 70 65 3a 20 25 64 2c | 20 67 72 61 70 68 20 25 |ype: %d,| graph %|
|000056d0| 64 5c 6e 22 2c 67 72 61 | 70 68 73 5b 69 5d 2e 74 |d\n",gra|phs[i].t|
|000056e0| 79 70 65 2c 20 69 29 3b | 0a 58 09 09 0a 58 09 20 |ype, i);|.X...X. |
|000056f0| 20 20 20 7d 0a 58 09 20 | 20 20 20 69 66 20 28 70 | }.X. | if (p|
|00005700| 6f 69 6e 74 73 5b 69 5d | 5b 70 6f 69 6e 74 5f 70 |oints[i]|[point_p|
|00005710| 6f 73 5d 3c 30 29 20 70 | 6f 69 6e 74 73 5b 69 5d |os]<0) p|oints[i]|
|00005720| 5b 70 6f 69 6e 74 5f 70 | 6f 73 5d 3d 30 3b 0a 58 |[point_p|os]=0;.X|
|00005730| 09 20 20 20 20 67 72 61 | 70 68 73 5b 69 5d 2e 72 |. gra|phs[i].r|
|00005740| 75 6e 6e 69 6e 67 5f 61 | 76 67 20 2b 3d 20 70 6f |unning_a|vg += po|
|00005750| 69 6e 74 73 5b 69 5d 5b | 70 6f 69 6e 74 5f 70 6f |ints[i][|point_po|
|00005760| 73 5d 20 2d 0a 58 09 09 | 09 67 72 61 70 68 73 5b |s] -.X..|.graphs[|
|00005770| 69 5d 2e 72 75 6e 6e 69 | 6e 67 5f 61 76 67 3b 0a |i].runni|ng_avg;.|
|00005780| 58 0a 58 09 20 20 20 20 | 2f 2a 20 43 68 65 63 6b |X.X. |/* Check|
|00005790| 20 74 6f 20 73 65 65 20 | 69 66 20 74 68 65 20 67 | to see |if the g|
|000057a0| 72 61 70 68 20 6e 65 65 | 64 73 20 74 6f 20 62 65 |raph nee|ds to be|
|000057b0| 20 64 6f 77 6e 73 63 61 | 6c 65 64 2e 20 20 4f 6e | downsca|led. On|
|000057c0| 6c 79 20 61 63 74 75 61 | 6c 6c 79 0a 58 09 20 20 |ly actua|lly.X. |
|000057d0| 20 20 20 2a 20 61 74 74 | 65 6d 70 74 20 74 6f 20 | * att|empt to |
|000057e0| 64 6f 20 64 6f 77 6e 73 | 63 61 6c 69 6e 67 20 6f |do downs|caling o|
|000057f0| 6e 63 65 20 65 76 65 72 | 79 20 31 30 20 74 69 63 |nce ever|y 10 tic|
|00005800| 6b 73 2e 20 20 54 68 69 | 73 20 69 73 20 74 6f 0a |ks. Thi|s is to.|
|00005810| 58 09 20 20 20 20 20 2a | 20 70 72 65 76 65 6e 74 |X. *| prevent|
|00005820| 20 65 78 63 65 73 73 69 | 76 65 20 72 75 6e 74 68 | excessi|ve runth|
|00005830| 72 6f 75 67 68 73 20 6f | 66 20 74 68 65 20 70 6f |roughs o|f the po|
|00005840| 69 6e 74 73 20 61 72 72 | 61 79 2c 20 66 69 6e 64 |ints arr|ay, find|
|00005850| 69 6e 67 0a 58 09 20 20 | 20 20 20 2a 20 74 68 65 |ing.X. | * the|
|00005860| 20 6d 61 78 20 76 61 6c | 75 65 20 69 74 20 68 6f | max val|ue it ho|
|00005870| 6c 64 73 2e 0a 58 09 20 | 20 20 20 20 2a 20 57 65 |lds..X. | * We|
|00005880| 20 64 6f 20 74 68 65 20 | 63 68 65 63 6b 20 6f 6e | do the |check on|
|00005890| 20 74 72 75 65 5f 73 63 | 61 6c 65 2e 20 20 49 46 | true_sc|ale. IF|
|000058a0| 20 67 72 61 70 68 73 20 | 61 72 65 20 73 79 6e 63 | graphs |are sync|
|000058b0| 68 72 6f 6e 69 7a 65 64 | 2c 0a 58 09 20 20 20 20 |hronized|,.X. |
|000058c0| 20 2a 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 70 | * there| is no p|
|000058d0| 6f 69 6e 74 20 73 65 65 | 69 6e 67 20 69 66 20 77 |oint see|ing if w|
|000058e0| 65 20 63 61 6e 20 64 6f | 77 6e 73 63 61 6c 65 20 |e can do|wnscale |
|000058f0| 77 68 65 6e 20 77 65 20 | 6b 6e 6f 77 0a 58 09 20 |when we |know.X. |
|00005900| 20 20 20 20 2a 20 74 68 | 61 74 20 77 65 20 73 68 | * th|at we sh|
|00005910| 6f 75 6c 64 2c 20 62 75 | 74 20 61 6e 6f 74 68 65 |ould, bu|t anothe|
|00005920| 72 20 67 72 61 70 68 20 | 68 61 73 20 61 20 68 69 |r graph |has a hi|
|00005930| 67 68 65 72 20 73 63 61 | 6c 65 2e 0a 58 09 20 20 |gher sca|le..X. |
|00005940| 20 20 20 2a 2f 0a 58 09 | 09 0a 58 09 20 20 20 20 | */.X.|..X. |
|00005950| 69 66 20 28 21 28 6e 75 | 6d 5f 74 69 63 6b 73 20 |if (!(nu|m_ticks |
|00005960| 25 20 44 4f 57 4e 53 43 | 41 4c 45 5f 4f 43 43 55 |% DOWNSC|ALE_OCCU|
|00005970| 52 41 4e 43 45 29 20 26 | 26 0a 58 09 09 67 72 61 |RANCE) &|&.X..gra|
|00005980| 70 68 73 5b 69 5d 2e 72 | 75 6e 6e 69 6e 67 5f 61 |phs[i].r|unning_a|
|00005990| 76 67 3c 67 72 61 70 68 | 73 5b 69 5d 2e 74 72 75 |vg<graph|s[i].tru|
|000059a0| 65 5f 73 63 61 6c 65 2a | 67 72 61 70 68 73 5b 69 |e_scale*|graphs[i|
|000059b0| 5d 2e 73 63 61 6c 65 5f | 6d 75 6c 74 0a 58 09 09 |].scale_|mult.X..|
|000059c0| 26 26 20 67 72 61 70 68 | 73 5b 69 5d 2e 74 72 75 |&& graph|s[i].tru|
|000059d0| 65 5f 73 63 61 6c 65 3e | 67 72 61 70 68 73 5b 69 |e_scale>|graphs[i|
|000059e0| 5d 2e 6d 69 6e 5f 73 63 | 61 6c 65 29 20 7b 0a 58 |].min_sc|ale) {.X|
|000059f0| 09 09 20 20 20 20 69 6e | 74 09 6b 2c 6d 61 78 3d |.. in|t.k,max=|
|00005a00| 30 3b 0a 58 0a 58 09 09 | 20 20 20 20 66 6f 72 20 |0;.X.X..| for |
|00005a10| 28 6b 3d 30 3b 20 6b 3c | 77 69 64 74 68 3b 20 6b |(k=0; k<|width; k|
|00005a20| 2b 2b 29 0a 58 09 09 09 | 69 66 20 28 70 6f 69 6e |++).X...|if (poin|
|00005a30| 74 73 5b 69 5d 5b 6b 5d | 3e 6d 61 78 29 20 6d 61 |ts[i][k]|>max) ma|
|00005a40| 78 3d 70 6f 69 6e 74 73 | 5b 69 5d 5b 6b 5d 3b 0a |x=points|[i][k];.|
|00005a50| 58 09 09 20 20 20 20 69 | 66 20 28 67 72 61 70 68 |X.. i|f (graph|
|00005a60| 73 5b 69 5d 2e 74 72 75 | 65 5f 73 63 61 6c 65 2a |s[i].tru|e_scale*|
|00005a70| 67 72 61 70 68 73 5b 69 | 5d 2e 73 63 61 6c 65 5f |graphs[i|].scale_|
|00005a80| 6d 75 6c 74 20 2f 20 32 | 20 3e 20 6d 61 78 29 20 |mult / 2| > max) |
|00005a90| 7b 0a 58 09 09 09 77 68 | 69 6c 65 20 28 67 72 61 |{.X...wh|ile (gra|
|00005aa0| 70 68 73 5b 69 5d 2e 72 | 75 6e 6e 69 6e 67 5f 61 |phs[i].r|unning_a|
|00005ab0| 76 67 3c 67 72 61 70 68 | 73 5b 69 5d 2e 74 72 75 |vg<graph|s[i].tru|
|00005ac0| 65 5f 73 63 61 6c 65 20 | 2a 20 67 72 61 70 68 73 |e_scale |* graphs|
|00005ad0| 5b 69 5d 2e 73 63 61 6c | 65 5f 6d 75 6c 74 20 26 |[i].scal|e_mult &|
|00005ae0| 26 0a 58 09 09 09 20 20 | 20 20 67 72 61 70 68 73 |&.X... | graphs|
|00005af0| 5b 69 5d 2e 74 72 75 65 | 5f 73 63 61 6c 65 20 2a |[i].true|_scale *|
|00005b00| 20 67 72 61 70 68 73 5b | 69 5d 2e 73 63 61 6c 65 | graphs[|i].scale|
|00005b10| 5f 6d 75 6c 74 2f 32 20 | 3e 20 6d 61 78 20 26 26 |_mult/2 |> max &&|
|00005b20| 0a 58 09 09 09 20 20 20 | 20 67 72 61 70 68 73 5b |.X... | graphs[|
|00005b30| 69 5d 2e 74 72 75 65 5f | 73 63 61 6c 65 20 3e 20 |i].true_|scale > |
|00005b40| 67 72 61 70 68 73 5b 69 | 5d 2e 6d 69 6e 5f 73 63 |graphs[i|].min_sc|
|00005b50| 61 6c 65 29 0a 58 09 09 | 09 09 67 72 61 70 68 73 |ale).X..|..graphs|
|00005b60| 5b 69 5d 2e 74 72 75 65 | 5f 73 63 61 6c 65 20 2f |[i].true|_scale /|
|00005b70| 3d 32 3b 0a 58 0a 58 09 | 09 09 69 66 20 28 67 72 |=2;.X.X.|..if (gr|
|00005b80| 61 70 68 73 5b 69 5d 2e | 74 72 75 65 5f 73 63 61 |aphs[i].|true_sca|
|00005b90| 6c 65 20 3c 20 67 72 61 | 70 68 73 5b 69 5d 2e 6d |le < gra|phs[i].m|
|00005ba0| 69 6e 5f 73 63 61 6c 65 | 29 0a 58 09 09 09 09 67 |in_scale|).X....g|
|00005bb0| 72 61 70 68 73 5b 69 5d | 2e 74 72 75 65 5f 73 63 |raphs[i]|.true_sc|
|00005bc0| 61 6c 65 20 3d 20 67 72 | 61 70 68 73 5b 69 5d 2e |ale = gr|aphs[i].|
|00005bd0| 6d 69 6e 5f 73 63 61 6c | 65 3b 0a 58 09 09 09 67 |min_scal|e;.X...g|
|00005be0| 72 61 70 68 73 5b 69 5d | 2e 73 63 61 6c 65 20 3d |raphs[i]|.scale =|
|00005bf0| 20 67 72 61 70 68 73 5b | 69 5d 2e 74 72 75 65 5f | graphs[|i].true_|
|00005c00| 73 63 61 6c 65 3b 0a 58 | 09 09 09 67 72 61 70 68 |scale;.X|...graph|
|00005c10| 5f 72 65 64 72 61 77 5f | 6e 65 65 64 65 64 20 3d |_redraw_|needed =|
|00005c20| 20 54 52 55 45 3b 0a 58 | 09 09 09 69 66 20 28 73 | TRUE;.X|...if (s|
|00005c30| 63 61 6c 65 5f 73 79 6e | 63 29 20 73 79 6e 63 5f |cale_syn|c) sync_|
|00005c40| 73 63 61 6c 65 73 28 67 | 72 61 70 68 73 5b 69 5d |scales(g|raphs[i]|
|00005c50| 29 3b 0a 58 09 09 20 20 | 20 20 7d 0a 58 09 09 7d |);.X.. | }.X..}|
|00005c60| 0a 58 0a 58 09 20 20 20 | 20 69 66 20 28 70 6f 69 |.X.X. | if (poi|
|00005c70| 6e 74 73 5b 69 5d 5b 70 | 6f 69 6e 74 5f 70 6f 73 |nts[i][p|oint_pos|
|00005c80| 5d 3e 67 72 61 70 68 73 | 5b 69 5d 2e 74 72 75 65 |]>graphs|[i].true|
|00005c90| 5f 73 63 61 6c 65 2a 67 | 72 61 70 68 73 5b 69 5d |_scale*g|raphs[i]|
|00005ca0| 2e 73 63 61 6c 65 5f 6d | 75 6c 74 20 26 26 0a 58 |.scale_m|ult &&.X|
|00005cb0| 09 09 67 72 61 70 68 73 | 5b 69 5d 2e 74 72 75 65 |..graphs|[i].true|
|00005cc0| 5f 73 63 61 6c 65 3c 67 | 72 61 70 68 73 5b 69 5d |_scale<g|raphs[i]|
|00005cd0| 2e 6d 61 78 5f 73 63 61 | 6c 65 29 20 7b 0a 58 09 |.max_sca|le) {.X.|
|00005ce0| 09 20 20 20 20 64 6f 20 | 7b 0a 58 09 09 09 67 72 |. do |{.X...gr|
|00005cf0| 61 70 68 73 5b 69 5d 2e | 74 72 75 65 5f 73 63 61 |aphs[i].|true_sca|
|00005d00| 6c 65 20 2a 3d 20 32 3b | 0a 58 09 09 20 20 20 20 |le *= 2;|.X.. |
|00005d10| 7d 20 77 68 69 6c 65 20 | 28 70 6f 69 6e 74 73 5b |} while |(points[|
|00005d20| 69 5d 5b 70 6f 69 6e 74 | 5f 70 6f 73 5d 3e 3d 67 |i][point|_pos]>=g|
|00005d30| 72 61 70 68 73 5b 69 5d | 2e 74 72 75 65 5f 73 63 |raphs[i]|.true_sc|
|00005d40| 61 6c 65 20 2a 20 67 72 | 61 70 68 73 5b 69 5d 2e |ale * gr|aphs[i].|
|00005d50| 73 63 61 6c 65 5f 6d 75 | 6c 74 20 26 26 0a 58 09 |scale_mu|lt &&.X.|
|00005d60| 09 09 67 72 61 70 68 73 | 5b 69 5d 2e 74 72 75 65 |..graphs|[i].true|
|00005d70| 5f 73 63 61 6c 65 20 3c | 20 67 72 61 70 68 73 5b |_scale <| graphs[|
|00005d80| 69 5d 2e 6d 61 78 5f 73 | 63 61 6c 65 29 3b 0a 58 |i].max_s|cale);.X|
|00005d90| 09 09 20 20 20 20 69 66 | 20 28 67 72 61 70 68 73 |.. if| (graphs|
|00005da0| 5b 69 5d 2e 74 72 75 65 | 5f 73 63 61 6c 65 3e 67 |[i].true|_scale>g|
|00005db0| 72 61 70 68 73 5b 69 5d | 2e 6d 61 78 5f 73 63 61 |raphs[i]|.max_sca|
|00005dc0| 6c 65 29 0a 58 09 09 09 | 67 72 61 70 68 73 5b 69 |le).X...|graphs[i|
|00005dd0| 5d 2e 74 72 75 65 5f 73 | 63 61 6c 65 20 3d 20 67 |].true_s|cale = g|
|00005de0| 72 61 70 68 73 5b 69 5d | 2e 6d 61 78 5f 73 63 61 |raphs[i]|.max_sca|
|00005df0| 6c 65 3b 0a 58 09 09 67 | 72 61 70 68 73 5b 69 5d |le;.X..g|raphs[i]|
|00005e00| 2e 73 63 61 6c 65 20 3d | 20 67 72 61 70 68 73 5b |.scale =| graphs[|
|00005e10| 69 5d 2e 74 72 75 65 5f | 73 63 61 6c 65 3b 0a 58 |i].true_|scale;.X|
|00005e20| 09 09 67 72 61 70 68 5f | 72 65 64 72 61 77 5f 6e |..graph_|redraw_n|
|00005e30| 65 65 64 65 64 20 3d 20 | 54 52 55 45 3b 0a 58 09 |eeded = |TRUE;.X.|
|00005e40| 09 69 66 20 28 73 63 61 | 6c 65 5f 73 79 6e 63 29 |.if (sca|le_sync)|
|00005e50| 20 73 79 6e 63 5f 73 63 | 61 6c 65 73 28 67 72 61 | sync_sc|ales(gra|
|00005e60| 70 68 73 5b 69 5d 29 3b | 0a 58 09 20 20 20 20 7d |phs[i]);|.X. }|
|00005e70| 0a 58 09 7d 0a 58 09 0a | 58 09 2f 2a 20 4f 6e 6c |.X.}.X..|X./* Onl|
|00005e80| 79 20 72 65 2d 64 72 61 | 77 20 69 74 20 6f 6e 63 |y re-dra|w it onc|
|00005e90| 65 2e 20 20 54 68 61 74 | 20 69 73 20 77 68 79 20 |e. That| is why |
|00005ea0| 67 72 61 70 68 5f 72 65 | 64 72 61 77 5f 6e 65 65 |graph_re|draw_nee|
|00005eb0| 64 65 64 20 69 73 20 73 | 65 74 0a 58 09 20 2a 20 |ded is s|et.X. * |
|00005ec0| 61 62 6f 76 65 2c 20 61 | 6e 64 20 6e 6f 74 20 6a |above, a|nd not j|
|00005ed0| 75 73 74 20 61 20 63 61 | 6c 6c 20 74 6f 20 72 65 |ust a ca|ll to re|
|00005ee0| 64 72 61 77 5f 67 72 61 | 70 68 0a 58 09 20 2a 2f |draw_gra|ph.X. */|
|00005ef0| 0a 58 09 69 66 20 28 67 | 72 61 70 68 5f 72 65 64 |.X.if (g|raph_red|
|00005f00| 72 61 77 5f 6e 65 65 64 | 65 64 29 0a 58 09 09 72 |raw_need|ed).X..r|
|00005f10| 65 64 72 61 77 5f 67 72 | 61 70 68 28 29 3b 0a 58 |edraw_gr|aph();.X|
|00005f20| 0a 58 09 72 65 74 75 72 | 6e 20 67 72 61 70 68 5f |.X.retur|n graph_|
|00005f30| 72 65 64 72 61 77 5f 6e | 65 65 64 65 64 3b 0a 58 |redraw_n|eeded;.X|
|00005f40| 7d 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |}.END_OF|_FILE.if|
|00005f50| 20 74 65 73 74 20 36 38 | 39 36 20 2d 6e 65 20 60 | test 68|96 -ne `|
|00005f60| 77 63 20 2d 63 20 3c 27 | 70 6f 72 74 69 6e 67 2e |wc -c <'|porting.|
|00005f70| 63 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |c'`; the|n. ec|
|00005f80| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6f 72 74 |ho shar:| \"'port|
|00005f90| 69 6e 67 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |ing.c'\"| unpacke|
|00005fa0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00005fb0| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00005fc0| 70 6f 72 74 69 6e 67 2e | 63 27 0a 66 69 0a 69 66 |porting.|c'.fi.if|
|00005fd0| 20 74 65 73 74 20 2d 66 | 20 27 78 73 79 73 73 74 | test -f| 'xsysst|
|00005fe0| 61 74 73 2e 63 27 20 2d | 61 20 22 24 7b 31 7d 22 |ats.c' -|a "${1}"|
|00005ff0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00006000| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00006010| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00006020| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00006030| 78 73 79 73 73 74 61 74 | 73 2e 63 27 5c 22 0a 65 |xsysstat|s.c'\".e|
|00006040| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00006050| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 78 73 79 |xtractin|g \"'xsy|
|00006060| 73 73 74 61 74 73 2e 63 | 27 5c 22 20 5c 28 32 32 |sstats.c|'\" \(22|
|00006070| 38 32 32 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |822 char|acters\)|
|00006080| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00006090| 78 73 79 73 73 74 61 74 | 73 2e 63 27 20 3c 3c 27 |xsysstat|s.c' <<'|
|000060a0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 69 |END_OF_F|ILE'.X#i|
|000060b0| 6e 63 6c 75 64 65 20 22 | 78 73 79 73 73 74 61 74 |nclude "|xsysstat|
|000060c0| 73 2e 68 22 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |s.h".X#i|nclude "|
|000060d0| 68 65 61 64 65 72 73 2e | 68 22 0a 58 23 69 6e 63 |headers.|h".X#inc|
|000060e0| 6c 75 64 65 20 22 70 61 | 74 63 68 6c 65 76 65 6c |lude "pa|tchlevel|
|000060f0| 2e 68 22 0a 58 0a 58 73 | 74 72 75 63 74 20 62 61 |.h".X.Xs|truct ba|
|00006100| 73 65 5f 74 79 70 65 73 | 20 7b 0a 58 09 63 68 61 |se_types| {.X.cha|
|00006110| 72 09 2a 63 6d 64 5f 6f | 70 74 69 6f 6e 3b 09 2f |r.*cmd_o|ption;./|
|00006120| 2a 20 68 6f 77 20 69 74 | 20 69 73 20 63 61 6c 6c |* how it| is call|
|00006130| 65 64 20 6f 6e 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ed on th|e comman|
|00006140| 64 20 6c 69 6e 65 20 2a | 2f 0a 58 09 63 68 61 72 |d line *|/.X.char|
|00006150| 09 2a 77 69 6e 64 6f 77 | 5f 6e 61 6d 65 3b 09 2f |.*window|_name;./|
|00006160| 2a 20 77 68 61 74 20 77 | 65 20 63 61 6c 6c 20 69 |* what w|e call i|
|00006170| 74 20 6f 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t on the| window |
|00006180| 2a 2f 0a 58 09 69 6e 74 | 09 64 65 66 5f 73 63 61 |*/.X.int|.def_sca|
|00006190| 6c 65 3b 09 2f 2a 20 64 | 65 66 61 75 6c 74 20 73 |le;./* d|efault s|
|000061a0| 63 61 6c 65 20 66 6f 72 | 20 74 68 61 74 20 67 72 |cale for| that gr|
|000061b0| 61 70 68 20 74 79 70 65 | 20 2a 2f 0a 58 7d 3b 0a |aph type| */.X};.|
|000061c0| 58 0a 58 2f 2a 20 49 74 | 20 69 73 20 69 6d 70 6f |X.X/* It| is impo|
|000061d0| 72 74 61 6e 74 20 74 68 | 61 74 20 74 68 65 20 6e |rtant th|at the n|
|000061e0| 27 74 68 20 70 6c 61 63 | 65 6d 65 6e 74 20 6f 66 |'th plac|ement of|
|000061f0| 20 74 68 69 73 20 61 72 | 72 61 79 20 63 6f 72 72 | this ar|ray corr|
|00006200| 65 73 70 6f 6e 64 73 0a | 58 20 2a 20 74 6f 20 74 |esponds.|X * to t|
|00006210| 68 65 20 6e 27 74 68 20 | 76 61 6c 75 65 20 74 79 |he n'th |value ty|
|00006220| 70 65 20 69 6e 20 78 73 | 79 73 73 74 61 74 73 2e |pe in xs|ysstats.|
|00006230| 68 20 28 69 65 2c 20 39 | 27 74 68 20 76 61 6c 75 |h (ie, 9|'th valu|
|00006240| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 74 6f |e corres|ponds to|
|00006250| 20 65 72 72 6f 72 73 29 | 0a 58 20 2a 2f 0a 58 73 | errors)|.X */.Xs|
|00006260| 74 72 75 63 74 20 62 61 | 73 65 5f 74 79 70 65 73 |truct ba|se_types|
|00006270| 20 74 79 70 65 73 5b 4e | 55 4d 5f 54 59 50 45 53 | types[N|UM_TYPES|
|00006280| 2b 31 5d 20 3d 20 7b 0a | 58 7b 22 63 70 75 22 2c |+1] = {.|X{"cpu",|
|00006290| 20 22 63 70 75 22 2c 20 | 31 30 30 7d 2c 20 7b 22 | "cpu", |100}, {"|
|000062a0| 70 61 63 6b 65 74 73 22 | 2c 20 22 70 6b 74 73 22 |packets"|, "pkts"|
|000062b0| 2c 33 32 7d 2c 20 7b 22 | 70 61 67 65 22 2c 20 22 |,32}, {"|page", "|
|000062c0| 70 61 67 65 22 2c 31 36 | 7d 2c 0a 58 7b 22 73 77 |page",16|},.X{"sw|
|000062d0| 61 70 22 2c 20 22 73 77 | 61 70 22 2c 31 36 7d 2c |ap", "sw|ap",16},|
|000062e0| 7b 22 69 6e 74 65 72 72 | 75 70 74 73 22 2c 20 22 |{"interr|upts", "|
|000062f0| 69 6e 74 72 22 2c 32 30 | 30 7d 2c 20 7b 22 64 69 |intr",20|0}, {"di|
|00006300| 73 6b 22 2c 20 22 64 69 | 73 6b 22 2c 34 30 7d 2c |sk", "di|sk",40},|
|00006310| 0a 58 7b 22 63 6f 6e 74 | 65 78 74 22 2c 20 22 63 |.X{"cont|ext", "c|
|00006320| 74 78 74 22 2c 31 32 38 | 7d 2c 0a 58 7b 22 6c 6f |txt",128|},.X{"lo|
|00006330| 61 64 31 22 2c 20 22 6c | 6f 61 64 31 22 2c 32 7d |ad1", "l|oad1",2}|
|00006340| 2c 0a 58 7b 22 6c 6f 61 | 64 35 22 2c 20 22 6c 6f |,.X{"loa|d5", "lo|
|00006350| 61 64 35 22 2c 20 32 7d | 2c 0a 58 7b 22 6c 6f 61 |ad5", 2}|,.X{"loa|
|00006360| 64 31 35 22 2c 20 22 6c | 6f 61 64 31 35 22 2c 20 |d15", "l|oad15", |
|00006370| 32 7d 2c 0a 58 7b 22 63 | 6f 6c 6c 69 73 69 6f 6e |2},.X{"c|ollision|
|00006380| 73 22 2c 20 22 63 6f 6c | 6c 22 2c 38 7d 2c 0a 58 |s", "col|l",8},.X|
|00006390| 7b 22 65 72 72 6f 72 73 | 22 2c 20 22 65 72 72 73 |{"errors|", "errs|
|000063a0| 22 2c 38 7d 0a 58 7d 3b | 0a 58 0a 58 0a 58 2f 2a |",8}.X};|.X.X.X/*|
|000063b0| 20 56 61 72 69 6f 75 73 | 20 6e 6f 74 65 73 3a 0a | Various| notes:.|
|000063c0| 58 20 2a 20 77 65 20 73 | 74 6f 72 65 20 74 68 65 |X * we s|tore the|
|000063d0| 20 76 61 6c 75 65 73 20 | 69 6e 20 74 68 65 20 27 | values |in the '|
|000063e0| 70 6f 69 6e 74 73 27 20 | 76 61 72 69 61 62 6c 65 |points' |variable|
|000063f0| 2e 20 20 54 68 65 79 20 | 61 72 65 20 73 74 6f 72 |. They |are stor|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.