add SIGAR_TICK2SEC macro
This commit is contained in:
parent
dff7d13462
commit
b1b7d8b605
|
@ -63,6 +63,9 @@
|
||||||
#define SIGAR_SEC2NANO(s) \
|
#define SIGAR_SEC2NANO(s) \
|
||||||
((sigar_uint64_t)(s) * (sigar_uint64_t)1000000000)
|
((sigar_uint64_t)(s) * (sigar_uint64_t)1000000000)
|
||||||
|
|
||||||
|
/* cpu ticks to seconds */
|
||||||
|
#define SIGAR_TICK2SEC(s) (s / sigar->ticks)
|
||||||
|
|
||||||
#define SIGAR_LAST_PROC_EXPIRE 2
|
#define SIGAR_LAST_PROC_EXPIRE 2
|
||||||
|
|
||||||
#define SIGAR_FS_MAX 10
|
#define SIGAR_FS_MAX 10
|
||||||
|
|
Loading…
Reference in New Issue