From 595094da14c1ca5b8e002ad89db5e5c24e38c870 Mon Sep 17 00:00:00 2001 From: Divvy Seldome Date: Sat, 29 May 2021 21:09:14 +0200 Subject: [PATCH] catch more than 9 eligible plots from the logs Fix the regex responsible for picking up how many eligible plots were detected. For values higher than 9 it only picked up the last digit before. This patch fixes it. --- chia-log-analyzer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia-log-analyzer.go b/chia-log-analyzer.go index c3ffe2c..a265eef 100644 --- a/chia-log-analyzer.go +++ b/chia-log-analyzer.go @@ -310,7 +310,7 @@ func readFile(fname string) { func parseLines(lines []string) { //0 plots were eligible for farming 27274481c3... Found 0 proofs. Time: 0.14447 s. Total 105 plots - regexPlotsFarming, _ := regexp.Compile("([0-9])\\s+plots\\s+were\\seligible.*Found\\s([0-9])+\\sproofs.*Time:\\s([0-9]+\\.[0-9]+)\\ss\\.\\sTotal\\s([0-9]+)\\splots") + regexPlotsFarming, _ := regexp.Compile("([0-9]+)\\s+plots\\s+were\\seligible.*Found\\s([0-9])+\\sproofs.*Time:\\s([0-9]+\\.[0-9]+)\\ss\\.\\sTotal\\s([0-9]+)\\splots") startParsingLines := false for i, s := range lines {