diff options
-rw-r--r-- | base/process_util_posix.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc index a3577aa..226589a 100644 --- a/base/process_util_posix.cc +++ b/base/process_util_posix.cc @@ -60,11 +60,10 @@ int64 TimeValToMicroseconds(const struct timeval& tv) { } int ProcessMetrics::GetCPUUsage() { - int retval; struct timeval now; struct rusage usage; - retval = gettimeofday(&now, NULL); + int retval = gettimeofday(&now, NULL); if (retval) return 0; retval = getrusage(RUSAGE_SELF, &usage); |