[SIGAR-19] change process cpu time units to milliseconds

This commit is contained in:
Doug MacEachern committed 2006-12-04 03:42:27 +00:00
1 parent 4e45608ce0
commit 795fa1ae44
7 files changed
+20 -15

No files matched your search

+5
View File
@@ -100,12 +100,17 @@
#define strnEQ(s1, s2, n) (strncmp(s1, s2, n) == 0)
#endif
#define SIGAR_MSEC 1000L
#define SIGAR_SEC2NANO(s) \
((sigar_uint64_t)(s) * (sigar_uint64_t)1000000000)
/* cpu ticks to seconds */
#define SIGAR_TICK2SEC(s) ((s) / sigar->ticks)
/* cpu ticks to milliseconds */
#define SIGAR_TICK2MSEC(s) ((s) * (SIGAR_MSEC / sigar->ticks))
#define IFTYPE_LO 2
#define IFTYPE_ETH 3