mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 16:53:54 +01:00
Declaring the script variable in the NS2 example
Small change to declares the script variable in the NS2 example.
This commit is contained in:
parent
34f18a6000
commit
c5bf58a3eb
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user