[SIGAR-129] prevent possible integer overflow

This commit is contained in:
Doug MacEachern committed 2009-02-06 13:45:56 -08:00
1 parent be5f4930a7
commit 0175e969e1
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,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 = sigar_time_now_millis(); sigar_uint64_t otime, time_now = sigar_time_now_millis();
sigar_int64_t time_diff, total_diff; sigar_uint64_t time_diff, total_diff;
int status; int status;
if (!sigar->proc_cpu) { if (!sigar->proc_cpu) {