| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="../lib/log.html"> | 7 <link rel="import" href="../lib/log.html"> |
| 8 <link rel="import" href="../lib/net.html"> | 8 <link rel="import" href="../lib/net.html"> |
| 9 <link rel="import" href="../lib/cqstats-util.html"> | 9 <link rel="import" href="../lib/cqstats-util.html"> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 CQStatsGraphData.prototype.rowItems = function(index) { | 57 CQStatsGraphData.prototype.rowItems = function(index) { |
| 58 var name = this._name; | 58 var name = this._name; |
| 59 return this._cqStatsListPromise.then(function(cqStatsList) { | 59 return this._cqStatsListPromise.then(function(cqStatsList) { |
| 60 var cqStats = cqStatsList[index]; | 60 var cqStats = cqStatsList[index]; |
| 61 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) { | 61 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) { |
| 62 // Convert seconds to minutes. | 62 // Convert seconds to minutes. |
| 63 items.forEach(function(item) { item[0] /= 60; }); | 63 items.forEach(function(item) { item[0] /= 60; }); |
| 64 return { | 64 return { |
| 65 items: items, | 65 items: items, |
| 66 begin: new Date(cqStats.begin * 1000), | 66 begin: cqStats.begin, |
| 67 end: new Date(cqStats.end * 1000), | 67 end: cqStats.end, |
| 68 }; | 68 }; |
| 69 }); | 69 }); |
| 70 }) | 70 }) |
| 71 }; | 71 }; |
| 72 </script> | 72 </script> |
| OLD | NEW |