mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 12:51:45 -04:00
runner: use activity.total() after the merge with main
d77c6fb1c dropped the total_network_activity local.
This commit is contained in:
1 parent
0e98f7accc
commit
1068e8893d
1 file changed
+1
-1
@@ -246,7 +246,7 @@ fn _tick(self: *Runner, comptime is_cdp: bool, timeout_ms: u32, conditions: []Wa
|
||||
|
||||
const now = lp.datetime.milliTimestamp(.boot);
|
||||
const network_idle_held = holdsFor(&self.network_idle_since, network_idle, now);
|
||||
const network_almost_idle_held = holdsFor(&self.network_almost_idle_since, total_network_activity <= 2, now);
|
||||
const network_almost_idle_held = holdsFor(&self.network_almost_idle_since, activity.total() <= 2, now);
|
||||
|
||||
// Outside the condition loop: it skips resolved conditions, but an idle
|
||||
// notification needs a check 500ms+ after the hold starts, and on a quiet
|
||||
|
||||
Reference in new issue
Block a user