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

Unified Diff: tracing/tracing/base/running_statistics.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 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 | « tracing/tracing/base/rect.html ('k') | tracing/tracing/base/settings.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/running_statistics.html
diff --git a/tracing/tracing/base/running_statistics.html b/tracing/tracing/base/running_statistics.html
index bb650e17cbf588501622f364bf5a39120736b823..292d595353a7780f17a36e07118df5f244064098 100644
--- a/tracing/tracing/base/running_statistics.html
+++ b/tracing/tracing/base/running_statistics.html
@@ -44,7 +44,7 @@ tr.exportTo('tr.b', function() {
}
get mean() {
- if (this.count_ == 0)
+ if (this.count_ === 0)
return undefined;
return this.mean_;
}
@@ -62,15 +62,15 @@ tr.exportTo('tr.b', function() {
}
get variance() {
- if (this.count_ == 0)
+ if (this.count_ === 0)
return undefined;
- if (this.count_ == 1)
+ if (this.count_ === 1)
return 0;
return this.variance_ / (this.count_ - 1);
}
get stddev() {
- if (this.count_ == 0)
+ if (this.count_ === 0)
return undefined;
return Math.sqrt(this.variance);
}
@@ -157,7 +157,7 @@ tr.exportTo('tr.b', function() {
static fromDict(dict) {
var result = new RunningStatistics();
- if (dict.length != 7) {
+ if (dict.length !== 7) {
return result;
}
[
« no previous file with comments | « tracing/tracing/base/rect.html ('k') | tracing/tracing/base/settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698