From 41417dc0389f3d12f9e4e2c7ccdb31129696445e Mon Sep 17 00:00:00 2001 From: xphade <18196286+xphade@users.noreply.github.com> Date: Sun, 10 Mar 2024 12:38:34 +0100 Subject: [PATCH] Fix hours-to-seconds conversion in save intervals The save intervals are meant to increase from 5 minutes up to 12 hours. However, there was a bug in the conversion from hours to seconds that resulted in wrong intervals (final save interval was 72 minutes). This commit fixes that issue. --- src/mining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mining.cpp b/src/mining.cpp index f292edf..0556997 100644 --- a/src/mining.cpp +++ b/src/mining.cpp @@ -43,7 +43,7 @@ monitor_data mMonitor; bool isMinerSuscribed = false; unsigned long mLastTXtoPool = millis(); -int saveIntervals[7] = {5 * 60, 15 * 60, 30 * 60, 1 * 360, 3 * 360, 6 * 360, 12 * 360}; +int saveIntervals[7] = {5 * 60, 15 * 60, 30 * 60, 1 * 3600, 3 * 3600, 6 * 3600, 12 * 3600}; int saveIntervalsSize = sizeof(saveIntervals)/sizeof(saveIntervals[0]); int currentIntervalIndex = 0;