Skip to content

Commit

Permalink
revert simulator change
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Jun 7, 2018
1 parent 88431be commit 7f67c24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lighthouse-core/lib/dependency-graph/simulator/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,8 @@ class Simulator {
const multiplier = cpuNode.didPerformLayout()
? this._layoutTaskMultiplier
: this._cpuSlowdownMultiplier;
// toplevel tasks always have an evt.dur
const observedDuration = /** @type {number} */ (cpuNode.event.dur);
const totalDuration = Math.min(
Math.round(observedDuration / 1000 * multiplier),
Math.round(cpuNode.event.dur / 1000 * multiplier),
DEFAULT_MAXIMUM_CPU_TASK_DURATION
);
const estimatedTimeElapsed = totalDuration - timingData.timeElapsed;
Expand Down

0 comments on commit 7f67c24

Please sign in to comment.