Fix weird off-by-one error in chrome timeline import

This commit is contained in:
Jamie Wong 2017-12-31 02:13:57 -05:00
parent 65ec2da913
commit 9fbef41305

View File

@ -84,7 +84,7 @@ export function importFromChrome(events: TimelineEvent[]) {
}
for (let i = 0; i < samples.length; i++) {
const timeDelta = timeDeltas[i]
const timeDelta = timeDeltas[i+1] || 0
const nodeId = samples[i]
let node = nodeById.get(nodeId)
if (!node) continue