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

Issue 2798723002: Fix the UMA stats calculation because of overflow (Closed)

Created:
3 years, 8 months ago by qinmin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the UMA stats calculation because of overflow size_t can be 32 bit, and it can easily overflow when calculating bandwidth. BUG=708248 Review-Url: https://codereview.chromium.org/2798723002 Cr-Commit-Position: refs/heads/master@{#462221} Committed: https://chromium.googlesource.com/chromium/src/+/d91c32221adad968b718754a00a6fc4573340e6b

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M content/browser/download/download_stats.cc View 2 chunks +6 lines, -7 lines 3 comments Download

Messages

Total messages: 16 (6 generated)
qinmin
PTAL
3 years, 8 months ago (2017-04-04 22:03:02 UTC) #2
qinmin
PTAL
3 years, 8 months ago (2017-04-04 22:03:42 UTC) #3
xingliu
https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc#newcode776 content/browser/download/download_stats.cc:776: size_t bytes_downloaded_with_parallel_streams, nit%: Not in this patch, but does ...
3 years, 8 months ago (2017-04-05 00:29:10 UTC) #4
qinmin
https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc#newcode776 content/browser/download/download_stats.cc:776: size_t bytes_downloaded_with_parallel_streams, On 2017/04/05 00:29:10, xingliu wrote: > nit%: ...
3 years, 8 months ago (2017-04-05 05:33:55 UTC) #5
xingliu
lgtm, Thanks for the fix. https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2798723002/diff/1/content/browser/download/download_stats.cc#newcode776 content/browser/download/download_stats.cc:776: size_t bytes_downloaded_with_parallel_streams, On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 17:56:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798723002/1
3 years, 8 months ago (2017-04-05 17:59:50 UTC) #8
qinmin
On 2017/04/05 17:56:38, xingliu wrote: > lgtm, > > Thanks for the fix. > > ...
3 years, 8 months ago (2017-04-05 18:02:02 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/422652)
3 years, 8 months ago (2017-04-05 18:05:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798723002/1
3 years, 8 months ago (2017-04-05 20:52:02 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 21:26:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d91c32221adad968b718754a00a6...

Powered by Google App Engine
This is Rietveld 408576698