Skip to content

Commit

Permalink
fix: Increase ember server matrix to 64x64.
Browse files Browse the repository at this point in the history
  • Loading branch information
KvelaGorrrrnio committed Nov 19, 2024
1 parent 5a92d5e commit 64a5d35
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions src/server/gateways/emberServerTree.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
const EmberServer = require('node-emberplus').EmberServer

const targets = ['tgt1', 'tgt2', 'tgt3', 'tgt4', 'tgt5', 'tgt6', 'tgt7', 'tgt8', 'tgt9', 'tgt10']
const sources = [
'src1',
'src2',
'src3',
'src4',
'src5',
'src6',
'src7',
'src8',
'src9',
'src10',
'src11',
'src12',
'src13',
'src14',
'src15',
'src16',
'src17',
'src18',
'src19',
'src20',
]
const sourceCount: number = 64
const targetCount: number = 64

const connections: readonly { target: string }[] = range(targetCount).map((i) => ({ target: i.toString() }))

const connections = Array.from(targets.keys()).map((i) => ({ target: i.toString() }))
function range(size: number): readonly number[] {
return new Array({ length: size }).map((_,index) => index)
}

const jsonTree = [
{
Expand Down Expand Up @@ -52,8 +35,8 @@ const jsonTree = [
identifier: 'PortalMatrix',
type: 'oneToN',
mode: 'linear',
targetCount: targets.length,
sourceCount: sources.length,
targetCount: targetCount,
sourceCount: sourceCount,
connections,
},
],
Expand Down

0 comments on commit 64a5d35

Please sign in to comment.