calxibe / StorjMonitor

Node.js script for publishing data from local Storj nodes to Storjstat.com
15 stars 14 forks source link

Use system sleep instead node setInterval #28

Closed wivern-co-uk closed 3 years ago

wivern-co-uk commented 5 years ago

storjMonitor.js occupy 101m of RAM while doing nothing between Storj node polls.

This PR removes nodejs setInterval in favor of the system while loop. Which means storjMonitor is running once in 15 mins and don't work in the meantime.

stefanbenten commented 5 years ago

@wivern-co-uk Just for the sake of completing this PR, would you mind updating the Windows .bat for it as well?

wivern-co-uk commented 3 years ago

I think since storj v3 is released we don't need it anymore