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

Unified Diff: cc/debug/latency_info.cc

Issue 14161019: Fix event_count calculation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/latency_info.cc
diff --git a/cc/debug/latency_info.cc b/cc/debug/latency_info.cc
index 0664dfbb6150f6d9d2c3f9d5c2e5d851f611912d..d76be74849027942e6c25f0167edd0d5977b3d4d 100644
--- a/cc/debug/latency_info.cc
+++ b/cc/debug/latency_info.cc
@@ -48,7 +48,7 @@ void LatencyInfo::AddLatencyNumberWithTimestamp(
// into this method.
f->second.event_time += (time - f->second.event_time) * event_count /
new_count;
- f->second.event_count += new_count;
+ f->second.event_count = new_count;
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698