diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 01:18:28 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 01:18:28 +0000 |
commit | 0c34137ded36b4519c8f793386e7115a55e209bf (patch) | |
tree | e17f6163e0fe18471221133c5b69b2f9c010dbad /chrome/browser/jankometer.cc | |
parent | 0ffec62170194a5b875f9b479eec5a5764ba8849 (diff) | |
download | chromium_src-0c34137ded36b4519c8f793386e7115a55e209bf.zip chromium_src-0c34137ded36b4519c8f793386e7115a55e209bf.tar.gz chromium_src-0c34137ded36b4519c8f793386e7115a55e209bf.tar.bz2 |
Add static cast to remove warning about loss of precision
r=dumi
Review URL: http://codereview.chromium.org/4552001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jankometer.cc')
-rw-r--r-- | chrome/browser/jankometer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/jankometer.cc b/chrome/browser/jankometer.cc index c7f6184..ed4f9fd 100644 --- a/chrome/browser/jankometer.cc +++ b/chrome/browser/jankometer.cc @@ -144,8 +144,8 @@ JankObserverHelper::JankObserverHelper( 1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag); if (discard_count_ > 0) { // Select a vaguely random sample-start-point. - events_till_measurement_ = - (TimeTicks::Now() - TimeTicks()).InSeconds() % (discard_count_ + 1); + events_till_measurement_ = static_cast<int>( + (TimeTicks::Now() - TimeTicks()).InSeconds() % (discard_count_ + 1)); } } |