Fix cpu ticks to msec on linux/ia64
Submitted by: Jan Kneschke <jan.kneschke@mysql.com>
This commit is contained in:
parent
b1a19f4e72
commit
b457837f28
|
@ -1,3 +1,8 @@
|
|||
2007-03-29 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* Fix cpu ticks to msec on linux/ia64
|
||||
Submitted by: Jan Kneschke <jan.kneschke@mysql.com>
|
||||
|
||||
2007-03-24 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* Implement proc_state_t.threads on OS X
|
||||
|
|
|
@ -118,8 +118,11 @@
|
|||
((sigar_uint64_t)(s) * (sigar_uint64_t)SIGAR_NSEC)
|
||||
|
||||
/* cpu ticks to milliseconds */
|
||||
#define SIGAR_TICK2MSEC(s) ((sigar_uint64_t)(s) * ((sigar_uint64_t)SIGAR_MSEC / sigar->ticks))
|
||||
#define SIGAR_TICK2NSEC(s) ((sigar_uint64_t)(s) * ((sigar_uint64_t)SIGAR_NSEC / sigar->ticks))
|
||||
#define SIGAR_TICK2MSEC(s) \
|
||||
((sigar_uint64_t)(s) * ((sigar_uint64_t)SIGAR_MSEC / (double)sigar->ticks))
|
||||
|
||||
#define SIGAR_TICK2NSEC(s) \
|
||||
((sigar_uint64_t)(s) * ((sigar_uint64_t)SIGAR_NSEC / (double)sigar->ticks))
|
||||
|
||||
#define IFTYPE_LO 2
|
||||
#define IFTYPE_ETH 3
|
||||
|
|
Loading…
Reference in New Issue