Skip to content

Commit 0689ce1

Browse files
committed
Fix NaN errors on explain plan view
(cherry picked from commit cb7cf46)
1 parent abeda23 commit 0689ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/explain-plan/stage-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ module.exports = View.extend( /* tooltipMixin, */ {
128128
debug(this.model.name, totalExMillis, curStageExMillis, prevStageExMillis);
129129

130130
// transforms to get the right percentage of arc for each piece of the clock
131-
var curArcStart = (prevStageExMillis / totalExMillis) * 2 * Math.PI;
132-
var curArcEnd = (curStageExMillis / totalExMillis) * 2 * Math.PI;
131+
var curArcStart = ((prevStageExMillis / totalExMillis) * 2 * Math.PI) || 0;
132+
var curArcEnd = ((curStageExMillis / totalExMillis) * 2 * Math.PI) || 0;
133133

134134
var prevArcStart = 0;
135135
var prevArcEnd = curArcStart;

0 commit comments

Comments
 (0)