From d198f61ea9524be6ed28f9034b58d324d30f7bc1 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 16 Jan 2023 18:09:08 +1100 Subject: [PATCH] Only go in runs of 50? --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 93bb7dc..fa58af6 100644 --- a/main.go +++ b/main.go @@ -141,7 +141,8 @@ func readRegs(client modbus.Client, start, qty uint16) { func scrape(client modbus.Client) { start := time.Now() scrapeStart.SetToCurrentTime() - readRegs(client, 5000, 100) + readRegs(client, 5000, 50) + readRegs(client, 5050, 50) readRegs(client, 5100, 50) scrapeEnd.SetToCurrentTime() lastScrape = time.Now()