Review fixes for the small-fix batch
What an IPv6-only swap still owes is set aside for every job after it, not only for the next swap. The intern's shift reads it once (X.ow in opsShift(), refreshed when the build standard order starts a swap) and every standing order's can() keeps it above the cash floor, whoever started the swap; the sheet's button checks it for every job of the click. Before, the same click or the next shift could spend it (a generator, a line system swap), and the swap then paid its routers under the floor or waited for weeks. ip6Owed() is 0 while IPv4 is plentiful, when the swaps wait anyway. satOnly() counts a fiber or cable to the island only once it has optics of its own: dark glass carries none of the island's traffic, so the selective peers keep refusing and an exchange session there stays paused. ixSessions() looks up the city's satellite circuit once per exchange instead of once per member. The standing-order descriptions of the build standard and the optical upgrade say a customer's wave holds a fiber, not any customer (new labels, every language). The batch's CHANGELOG bullets get first sentences that fit the in-app notes; the satellite bullet says PNIs and your own exchange keep peering, the hint bullet that it shows up to four teleports. German and Italian express.dim use the dictionaries' own words, and the German and Spanish IPv6-only note reads naturally.
This commit is contained in:
parent
9496c26a25
commit
9601345201
17 changed files with 129 additions and 51 deletions
|
|
@ -28,8 +28,10 @@ function lagName(tier,n){return (n||1)>1?`${n}×${PORT[tier].n} LAG`:tr('common.
|
|||
function ixCap(c){return ixLagF(c)*(S.myIx[c]?myFab(c).g*(myIxLive(c)?1:0):liveCap(PORT[S.ixp[c]].g,ixCity(c),(S.ixSite||{})[c],(S.ixn||{})[c])*(isRemote(c)?REMOTE_CAP:1));}
|
||||
function ixSessions(c){
|
||||
const s=new Set(); if(S.ixp[c]===undefined)return s;
|
||||
// satNo() for every member, with the city's satellite circuit (most cities have none) looked up once.
|
||||
const so=satOnly(ixCity(c)),orb=so&&SATS[so.bird].orb;
|
||||
for(const id of ixMembers(c)){const n=NET[id];
|
||||
if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id))&&!satNo(id,ixCity(c)))s.add(id);
|
||||
if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id))&&!(so&&noSat(id,orb)))s.add(id);
|
||||
else if(S.rs[c]&&n.pol==='open'&&ppol()==='open')s.add(id);
|
||||
else if(S.myIx[c]&&(n.pol==='open'||n.pol==='selective'))s.add(id);}
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue