summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 20:46:34 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 20:46:34 +0000
commitcfc36563df84833d852f27ac7e052dd5c004663f (patch)
treea92640183e69835cf18c6300bf52514c6b60bec5
parent39a0a3b65ef2f0851b185d5bade5681e440970fd (diff)
downloadchromium_src-cfc36563df84833d852f27ac7e052dd5c004663f.zip
chromium_src-cfc36563df84833d852f27ac7e052dd5c004663f.tar.gz
chromium_src-cfc36563df84833d852f27ac7e052dd5c004663f.tar.bz2
Quick touchup requested by reviewer
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6238 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/process_util_posix.cc3
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);