repo.or.cz
/
dockapps.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing libraries to examples' Makefiles
[dockapps.git]
/
wmcpuload
/
src
/
cpu.h
blob
5c01d4d07950cee9448948bc54f1f12e8a6b2ffa
1
/*
2
* cpu.h - header file of the module to get cpu usage
3
*
4
* Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
5
*
6
* licensed under the GPL
7
*/
8
9
#ifndef __CPU_H
10
#define __CPU_H
11
12
#ifdef IGNORE_PROC
13
#define COMM_LEN 16
14
#endif
15
#define MAX_PROC 5
16
#define MAX_CPU 99
17
18
typedef
struct
_cpu_options
{
19
int
ignore_nice
;
20
int
cpu_number
;
21
}
cpu_options
;
22
23
void
cpu_init
(
void
);
24
int
cpu_get_usage
(
cpu_options
*
opts
);
25
26
#endif