Index: base/process/process_metrics_linux.cc |
diff --git a/base/process/process_metrics_linux.cc b/base/process/process_metrics_linux.cc |
index 2d54c4c72657da6b2c54674c7fec9cb3a5577725..c564a6798baa6623a3646c35822b5041e1e5ad47 100644 |
--- a/base/process/process_metrics_linux.cc |
+++ b/base/process/process_metrics_linux.cc |
@@ -228,7 +228,7 @@ double ProcessMetrics::GetCPUUsage() { |
// are together adding to more than one CPU's worth. |
TimeDelta cpu_time = internal::ClockTicksToTimeDelta(cpu); |
TimeDelta last_cpu_time = internal::ClockTicksToTimeDelta(last_cpu_); |
- int percentage = 100 * (cpu_time - last_cpu_time).InSecondsF() / |
+ double percentage = 100.0 * (cpu_time - last_cpu_time).InSecondsF() / |
TimeDelta::FromMicroseconds(time_delta).InSecondsF(); |
last_cpu_time_ = time; |