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

Unified Diff: chrome/browser/ui/webui/chromeos/power_ui.cc

Issue 2853863002: Add parser for new cpu freq file (Closed)
Patch Set: Add parser for new cpu freq file Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/power_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/power_ui.cc b/chrome/browser/ui/webui/chromeos/power_ui.cc
index 0a354f96a47efe4e8eae8c851e5080d16553a6d2..b593b0277e218ec9ff4df9794ea08235793f6724 100644
--- a/chrome/browser/ui/webui/chromeos/power_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/power_ui.cc
@@ -176,7 +176,7 @@ void PowerMessageHandler::GetJsStateOccupancyData(
new base::DictionaryValue);
for (size_t index = 0; index < sample.time_in_state.size(); ++index) {
state_dict->SetDouble(state_names[index],
- static_cast<double>(sample.time_in_state[index]));
+ sample.time_in_state[index].InMillisecondsF());
}
js_sample->Set("timeInState", std::move(state_dict));

Powered by Google App Engine
This is Rietveld 408576698