Declaring the script variable in the NS2 example

Small change to declares the script variable in the NS2 example.
This commit is contained in:
Meowdoleon 2022-01-19 13:58:15 -05:00 committed by GitHub
parent 34f18a6000
commit c5bf58a3eb
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
// NS2:
const ps = ns.ps("home");
for (script of ps) {
for (let script of ps) {
ns.tprint(`${script.filename} ${ps[i].threads}`);
ns.tprint(script.args);
}