Home
last modified time | relevance | path

Searched refs:bandwidth_fn (Results 1 – 1 of 1) sorted by relevance

/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/crates/tor-netdir/src/
H A Dweight.rs204 bandwidth_fn: BandwidthFn, field
234 let router_bw = self.bandwidth_fn.apply(relay_weight); in weight_bw_for_role()
245 let bandwidth_fn = pick_bandwidth_fn(consensus.relays().iter().map(|rs| rs.weight())); in from_consensus() localVariable
251 .map(|rs| u64::from(bandwidth_fn.apply(rs.weight()))) in from_consensus()
255 Self::from_parts(bandwidth_fn, total_bw, weight_scale, p).validate(consensus) in from_consensus()
262 bandwidth_fn: BandwidthFn, in from_parts()
322 bandwidth_fn, in from_parts()
495 assert_eq!(ws.bandwidth_fn, BandwidthFn::MeasuredOnly); in t_weightset_basic()
637 assert_eq!(ws.bandwidth_fn, BandwidthFn::MeasuredOnly); in weightset_from_consensus()