Fix uint32_t overflow in task manager UI.
A uint32_t was being multiplied by 1024, and then implicitly cast to uint64_t. Instead, first explicitly cast to uint64_t, then multiply by 1024. Bug: 798234 Change-Id: I93188aca5b1169eeed2e91ef68f9d1a007a6e48b Reviewed-on: https://chromium-review.googlesource.com/848233Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Commit-Queue: Erik Chen <erikchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#526597}
Showing
Please register or sign in to comment