Index: tracing/tracing/ui/extras/system_stats/system_stats_instance_track.html |
diff --git a/tracing/tracing/ui/extras/system_stats/system_stats_instance_track.html b/tracing/tracing/ui/extras/system_stats/system_stats_instance_track.html |
index 055c7cd1340955c19d1935187d84df497491b162..2e096b65ec9058e751bf0d5b63f166b5be47634c 100644 |
--- a/tracing/tracing/ui/extras/system_stats/system_stats_instance_track.html |
+++ b/tracing/tracing/ui/extras/system_stats/system_stats_instance_track.html |
@@ -66,7 +66,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
this.objectInstance_ = []; |
return; |
} |
- if (objectInstances.length != 1) |
+ if (objectInstances.length !== 1) |
throw new Error('Bad object instance count.'); |
this.objectInstance_ = objectInstances[0]; |
if (this.objectInstance_ !== null) { |
@@ -83,7 +83,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
var prevSnapshot; |
var prevStats; |
- if (i == 0) { |
+ if (i === 0) { |
// Deltas will be zero. |
prevSnapshot = snapshots[0]; |
} else { |
@@ -92,7 +92,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
prevStats = prevSnapshot.getStats(); |
var timeIntervalSeconds = (snapshot.ts - prevSnapshot.ts) / 1000; |
// Prevent divide by zero. |
- if (timeIntervalSeconds == 0) |
+ if (timeIntervalSeconds === 0) |
timeIntervalSeconds = 1; |
this.computeRatesRecursive_(prevStats, stats, |
@@ -108,28 +108,28 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
stats[statName], |
timeIntervalSeconds); |
} else { |
- if (statName == 'sectors_read') { |
+ if (statName === 'sectors_read') { |
stats['bytes_read_per_sec'] = (stats['sectors_read'] - |
prevStats['sectors_read']) * |
512 / timeIntervalSeconds; |
} |
- if (statName == 'sectors_written') { |
+ if (statName === 'sectors_written') { |
stats['bytes_written_per_sec'] = |
(stats['sectors_written'] - |
prevStats['sectors_written']) * |
512 / timeIntervalSeconds; |
} |
- if (statName == 'pgmajfault') { |
+ if (statName === 'pgmajfault') { |
stats['pgmajfault_per_sec'] = (stats['pgmajfault'] - |
prevStats['pgmajfault']) / |
timeIntervalSeconds; |
} |
- if (statName == 'pswpin') { |
+ if (statName === 'pswpin') { |
stats['bytes_swpin_per_sec'] = (stats['pswpin'] - |
prevStats['pswpin']) * |
1000 / timeIntervalSeconds; |
} |
- if (statName == 'pswpout') { |
+ if (statName === 'pswpout') { |
stats['bytes_swpout_per_sec'] = (stats['pswpout'] - |
prevStats['pswpout']) * |
1000 / timeIntervalSeconds; |
@@ -237,7 +237,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
// Compute the edges for the column graph bar. |
var right; |
- if (i != objectSnapshots.length - 1) { |
+ if (i !== objectSnapshots.length - 1) { |
right = objectSnapshots[i + 1].ts; |
} else { |
// If this is the last snaphot of multiple snapshots, use the width of |
@@ -267,7 +267,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
maxStats, |
currentY); |
- if (i == lowIndex) |
+ if (i === lowIndex) |
this.drawStatNames_(leftView, height, currentY, '', maxStats); |
} |
ctx.lineWidth = 1; |
@@ -332,7 +332,7 @@ tr.exportTo('tr.ui.e.system_stats', function() { |
} else { |
var fullname = statName; |
- if (prefix != '') |
+ if (prefix !== '') |
fullname = prefix + ' :: ' + statName; |
ctx.fillText(fullname, leftView - 10, currentY - height / 4); |