mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-05 08:11:16 +00:00
15 lines
585 B
Diff
15 lines
585 B
Diff
--- a/chrome/browser/performance_manager/user_tuning/cpu_health_tracker.cc
|
|
+++ b/chrome/browser/performance_manager/user_tuning/cpu_health_tracker.cc
|
|
@@ -222,8 +222,9 @@
|
|
return;
|
|
}
|
|
|
|
- const CpuPercent total_system_cpu_usage{cpu_sample.value().cpu_utilization *
|
|
- 100};
|
|
+ const CpuPercent total_system_cpu_usage{
|
|
+ static_cast<int>(cpu_sample.value().cpu_utilization * 100)};
|
|
+
|
|
if (GetHealthLevelForMeasurement(total_system_cpu_usage) !=
|
|
HealthLevel::kHealthy) {
|
|
// Query for tab CPU usage to determine actionability
|