Merge pull request #2704 from Meowdoleon/patch-1

Declaring the script variable in the NS2 example
This commit is contained in:
hydroflame 2022-01-20 12:25:04 -05:00 committed by GitHub
commit fd530ad779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ for (let i = 0; i < scripts.length; ++i) {
```ts ```ts
// NS2: // NS2:
const ps = ns.ps("home"); const ps = ns.ps("home");
for (script of ps) { for (let script of ps) {
ns.tprint(`${script.filename} ${ps[i].threads}`); ns.tprint(`${script.filename} ${ps[i].threads}`);
ns.tprint(script.args); ns.tprint(script.args);
} }