Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
fix(cli): invalid chunk size #4
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Mar 5, 2022
1 parent cddacd4 commit 9e43315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const startAttack = async (targets: string[], version: number, flags: {
const battlefield = flags.battlefield ? flags.battlefield - 1 : new Date().getSeconds() % 4

console.log('Got targets list', targets.length, version)
targets = Array.from([...getChunks(targets, 15)][battlefield])
targets = Array.from([...getChunks(targets, Math.floor(targets.length/4))][battlefield])
console.log(`\tbattlefield: ${battlefield + 1}\n`, `\ttargets: ${targets.length}`)

return start(targets, flags.threads, console.log)
Expand Down

0 comments on commit 9e43315

Please sign in to comment.