Skip to content

Commit

Permalink
Small sample fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalCz committed Mar 10, 2022
1 parent 8caf0ee commit 306aa77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/system-info/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const os = require("os");

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

while (true) {
const next = new Promise(res => setTimeout(res, timeout));
yield {
type: "basic",
ts: Date.now(),
mem: os.freemem()
}
Expand Down

0 comments on commit 306aa77

Please sign in to comment.