Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1282)

Unified Diff: base/process/process_metrics_posix.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/launch_win.cc ('k') | base/process/process_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics_posix.cc
diff --git a/base/process/process_metrics_posix.cc b/base/process/process_metrics_posix.cc
index ea79d7348ff47f58fa16f946577386052d692429..7afae214d4a8708db1f6d5df59a28c7a301ea47d 100644
--- a/base/process/process_metrics_posix.cc
+++ b/base/process/process_metrics_posix.cc
@@ -12,9 +12,8 @@
namespace base {
int64 TimeValToMicroseconds(const struct timeval& tv) {
- static const int kMicrosecondsPerSecond = 1000000;
int64 ret = tv.tv_sec; // Avoid (int * int) integer overflow.
- ret *= kMicrosecondsPerSecond;
+ ret *= Time::kMicrosecondsPerSecond;
ret += tv.tv_usec;
return ret;
}
« no previous file with comments | « base/process/launch_win.cc ('k') | base/process/process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698