add SIGAR_TICK2SEC macro

This commit is contained in:
Doug MacEachern 2005-05-12 00:10:17 +00:00
parent dff7d13462
commit b1b7d8b605
1 changed files with 3 additions and 0 deletions

View File

@ -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