@@ -5,7 +5,7 @@ pushd "%~dp0"
55SETLOCAL EnableExtensions EnableDelayedExpansion
66MODE CON cols=70 lines=40
77shutdown.exe /A 2 > NUL 1 >& 2
8- SET ver = 2.1.9
8+ SET ver = 2.2.0
99SET mn = Cmnr
1010SET firstrun = 0
1111FOR /F " tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^ |Find " ." ') DO SET dt0 = %%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444SET restartpc = 0
4545SET noonrestart = 0
4646SET midnightrestart = 0
47+ SET afterstarttimeout = 0
4748SET internetcheck = 1
4849SET tempcheck = 0
4950SET globaltempcheck = 1
@@ -102,7 +103,7 @@ IF NOT EXIST "%config%" (
102103 GOTO createconfig
103104)
104105FOR /F " eol=# delims=" %%a IN (%config% ) DO SET " %%a "
105- FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
106+ FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
106107FOR /F " eol=# delims=" %%A IN ('findstr.exe /R /C:" commandserver.*" %config% ') DO SET /A serversamount += 1
107108FOR /L %%A IN (1,1,%serversamount% ) DO (
108109 FOR %%B IN (commandserver%%A ) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -172,6 +173,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
172173>> %config% ECHO noonrestart=%noonrestart%
173174>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
174175>> %config% ECHO midnightrestart=%midnightrestart%
176+ >> %config% ECHO # Timeout after miner was started [min value - 1 sec]
177+ >> %config% ECHO afterstarttimeout=%afterstarttimeout%
175178>> %config% ECHO # =================================================== [Other]
176179>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
177180>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -409,6 +412,10 @@ START "%bat%" "%bat%" && (
409412)
410413IF %lauchocprogram% EQU 1 CALL :oclauch
411414IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
415+ IF %afterstarttimeout% GEQ 1 (
416+ ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
417+ timeout.exe /T %afterstarttimeout% > NUL
418+ )
412419IF NOT DEFINED curservername SET curservername = unknown
413420IF NOT EXIST " %log% " (
414421 CALL :inform " 1" " false" " %log% is missing. Ensure *^>^> %log% 2^>^&1* option is added to the miners command line in *%config% * file." " %log% is missing. Ensure ^>^> %log% 2^>^&1 option is added to the miners command line in %config% file." " 2"
0 commit comments