| Index: tracing/tracing/model/power_series.html
|
| diff --git a/tracing/tracing/model/power_series.html b/tracing/tracing/model/power_series.html
|
| index 5e302fcda1c5abe764bc7776225c35f4a87c460f..9b553ba0e455fe2d3f1bf4d0b57a65ebd44f3841 100644
|
| --- a/tracing/tracing/model/power_series.html
|
| +++ b/tracing/tracing/model/power_series.html
|
| @@ -69,8 +69,9 @@ tr.exportTo('tr.model', function() {
|
| var endIndex = tr.b.math.findLowIndexInSortedArray(
|
| this.samples, x => x.start, end);
|
|
|
| - if (startIndex < 0)
|
| + if (startIndex < 0) {
|
| startIndex = 0;
|
| + }
|
|
|
| for (var i = startIndex; i < endIndex; i++) {
|
| var sample = this.samples[i];
|
| @@ -102,15 +103,15 @@ tr.exportTo('tr.model', function() {
|
| },
|
|
|
| shiftTimestampsForward: function(amount) {
|
| - for (var i = 0; i < this.samples_.length; ++i)
|
| + for (var i = 0; i < this.samples_.length; ++i) {
|
| this.samples_[i].start += amount;
|
| + }
|
| },
|
|
|
| updateBounds: function() {
|
| this.bounds.reset();
|
|
|
| - if (this.samples_.length === 0)
|
| - return;
|
| + if (this.samples_.length === 0) return;
|
|
|
| this.bounds.addValue(this.samples_[0].start);
|
| this.bounds.addValue(this.samples_[this.samples_.length - 1].start);
|
|
|