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

Unified Diff: tracing/tracing/metrics/blink/gc_metric.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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: tracing/tracing/metrics/blink/gc_metric.html
diff --git a/tracing/tracing/metrics/blink/gc_metric.html b/tracing/tracing/metrics/blink/gc_metric.html
index 4b8731dff0c7b77b8cf05bc24648c243a4dc6794..a4e0cdd9a4aba6791fcf2799a0fe7f4b68c8d009 100644
--- a/tracing/tracing/metrics/blink/gc_metric.html
+++ b/tracing/tracing/metrics/blink/gc_metric.html
@@ -80,10 +80,11 @@ tr.exportTo('tr.metrics.blink', function() {
function createPercentage(name, numerator, denominator) {
var histogram = new tr.v.Histogram(name, percentage_biggerIsBetter);
- if (denominator === 0)
+ if (denominator === 0) {
histogram.addSample(0);
- else
+ } else {
histogram.addSample(numerator / denominator);
+ }
return histogram;
}
« no previous file with comments | « tracing/tracing/importer/simple_line_reader.html ('k') | tracing/tracing/metrics/compare_samples_cmdline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698