wmcube: imported Upstream version 0.99-pre1
[dockapps.git] / wmcube / cpumoncc / programs / README
blob7809f2a4efb89bc092f106068717cc3d1ec9f544
1 These are two small programs that show how to use the cpumoncc library.
3 The first one, cpu, is a 'state-ful' cpu monitor that returns the average 
4 cpu load for the elapsed time between now and the last time you
5 ran the program. Useful (in a geeky way) in promts for example:
7 geoff@rama [CPU: 1%] ~/workspace/cpumoncc > ls
8 README  base  darwin  freebsd  linux  netbsd  openbsd  programs  solaris
9 geoff@rama [CPU: 4%] ~/workspace/cpumoncc >
11 This particular prompt is (in bash): 
12 PS1='\u@\h [CPU: `cpu`%] \w > '
15 The second program, cpuload, is a simple text mode cpu monitor.
17 To build these programs type 'make'. To install, type, as root, 'make install'.