Skip to content

Commit 6ef5e52

Browse files
committed
Small sample fix
1 parent 4d6768f commit 6ef5e52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/system-info/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
const os = require("os");
22

3-
module.exports = async function*(_timeout) {
3+
module.exports = async function*(input, _timeout) {
44
const timeout = +_timeout || 1000;
55
console.log({timeout});
66

77
while (true) {
88
const next = new Promise(res => setTimeout(res, timeout));
99
yield {
10+
type: "basic",
1011
ts: Date.now(),
1112
mem: os.freemem()
1213
}

0 commit comments

Comments
 (0)