File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
import * as Lantern from '../types/lantern.js' ;
8
8
import { Metric } from '../metric.js' ;
9
9
import { BaseNode } from '../base-node.js' ;
10
- // TODO(15841): move this default config value into lib/lantern
11
- import { throttling as defaultThrottling } from '../../../config/constants.js' ;
10
+
11
+ const mobileSlow4GRtt = 150 ;
12
12
13
13
/** @typedef {import('../base-node.js').Node } Node */
14
14
@@ -44,7 +44,7 @@ class SpeedIndex extends Metric {
44
44
// lantern test data set. See core/scripts/test-lantern.sh for more detail.
45
45
// While the coefficients haven't been analyzed at the interpolated points, it's our current best effort.
46
46
const defaultCoefficients = this . COEFFICIENTS ;
47
- const defaultRttExcess = defaultThrottling . mobileSlow4G . rttMs - 30 ;
47
+ const defaultRttExcess = mobileSlow4GRtt - 30 ;
48
48
const multiplier = Math . max ( ( rttMs - 30 ) / defaultRttExcess , 0 ) ;
49
49
50
50
return {
You can’t perform that action at this time.
0 commit comments