diff --git a/browser/devtools/shared/widgets/FlameGraph.jsm b/browser/devtools/shared/widgets/FlameGraph.jsm index f54746e537db..ab1b283fc8aa 100644 --- a/browser/devtools/shared/widgets/FlameGraph.jsm +++ b/browser/devtools/shared/widgets/FlameGraph.jsm @@ -800,10 +800,10 @@ FlameGraph.prototype = { } while (true) { + let scaledStep = dataScale * timingStep; if (++numIters > maxIters) { return scaledStep; } - let scaledStep = dataScale * timingStep; if (scaledStep < spacingMin) { timingStep <<= 1; continue;