Commit 0ea43e5
committed
fix: default speedInterval to 1000ms so fresh installs show speeds
DataStore.speedInterval used stringToInt's implicit { 0 } default. On a
fresh install that never opens the Settings screen, the key is absent, so
it resolved to 0. TrafficLooper.loop() returns early when delayMs == 0,
which disables the traffic-stats loop entirely and leaves the dashboard
up/down (UP/DOWN) speeds permanently blank.
Align the code default with global_preferences.xml (defaultValue=1000) so
the stats loop runs out of the box. '0' (Off) remains a valid explicit
user choice via the settings menu.1 parent bfac4af commit 0ea43e5
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments