Fix the casting error when recording tasks UMA
In TasksUma.java, the histogram Tabs.Tasks.TabsInGroupRatio and Tabs.Tasks.TabGroupDensity requires to record sample in integer format and have unit in percent. The code had a casting error when we cast the ratio (in double) to integer first then multiply by 100 to convert the unit to percent. This CL fixes the casting error by multiplying the ratio by 100 first to get the correct unit then cast that result to an integer. Bug: 856275 Change-Id: Id5d1d6a3450e3d733b27ee437f1e0c3f1fb94d0d Reviewed-on: https://chromium-review.googlesource.com/1115800Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Yusuf Ozuysal <yusufo@chromium.org> Commit-Queue: Mei Liang <meiliang@chromium.org> Cr-Commit-Position: refs/heads/master@{#571938}
Showing
Please register or sign in to comment