add SIGAR_TICK2SEC macro
This commit is contained in:
1 parent
dff7d13462
commit
b1b7d8b605
1 file changed
+3
@@ -63,6 +63,9 @@
|
||||
#define SIGAR_SEC2NANO(s) \
|
||||
((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_FS_MAX 10
|
||||
|
||||
Reference in new issue
Block a user