Only go in runs of 50?

This commit is contained in:
Josh Deprez 2023-01-16 18:09:08 +11:00
parent 619e4409e1
commit d198f61ea9
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -141,7 +141,8 @@ func readRegs(client modbus.Client, start, qty uint16) {
func scrape(client modbus.Client) { func scrape(client modbus.Client) {
start := time.Now() start := time.Now()
scrapeStart.SetToCurrentTime() scrapeStart.SetToCurrentTime()
readRegs(client, 5000, 100) readRegs(client, 5000, 50)
readRegs(client, 5050, 50)
readRegs(client, 5100, 50) readRegs(client, 5100, 50)
scrapeEnd.SetToCurrentTime() scrapeEnd.SetToCurrentTime()
lastScrape = time.Now() lastScrape = time.Now()