use time_now_millis
This commit is contained in:
parent
b37c690749
commit
6d7b04b6e8
|
@ -110,7 +110,7 @@ SIGAR_DECLARE(int) sigar_proc_cpu_get(sigar_t *sigar, sigar_pid_t pid,
|
||||||
{
|
{
|
||||||
sigar_cache_entry_t *entry;
|
sigar_cache_entry_t *entry;
|
||||||
sigar_proc_cpu_t *prev;
|
sigar_proc_cpu_t *prev;
|
||||||
sigar_uint64_t otime, time_now = time(NULL) * 1000;
|
sigar_uint64_t otime, time_now = sigar_time_now_millis();
|
||||||
sigar_int64_t time_diff, total_diff;
|
sigar_int64_t time_diff, total_diff;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue