Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

linkSpeedBps

Source

Resolve a link's nominal speed (bits/sec). Reads per-endpoint module standards (the canonical source) and falls back to runtime `rateBps` when neither end has a module set. For symmetric links both endpoints return the same speed; for asymmetric links (BiDi etc.) we pick the lower of the two (conservative for utilization math).

linkSpeedBps(link: Link | null | undefined): number | undefined

Parameters

Parameter Type Description Default
link Link | null | undefined No additional description.

Returns

number | undefined

libs/@shumoku/core/src/layout/link-utils.ts:73