File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,7 +206,6 @@ function Get-AlgorithmList {
206206 "
207207 Start-Process " .\Unix\Hive\killall.sh" - ArgumentList " $ ( $Type ) " - Wait
208208 Start-Sleep $Delay # Wait to prevent BSOD
209- if (Test-Path " $ ( $Type ) .log" ){Remove-Item " $ ( $Type ) .log" - recurse - force}
210209 $MiningId = Start-Process " screen" - ArgumentList " -S $ ( $Type ) -d -m"
211210 Start-Sleep - S 1
212211 if ($Type -like ' *NVIDIA*' ){$PreStart = Start-Process " .\Unix\Hive\pre-start.sh" - ArgumentList " $ ( $Type ) $Export " - Wait}
Original file line number Diff line number Diff line change @@ -968,6 +968,7 @@ $ActiveMinerPrograms | foreach {
968968 $DecayStart = Get-Date
969969 $_.New = $true
970970 $_.Activated ++
971+ if (Test-Path " .\Logs\$ ( $Type ) .log" ){Remove-Item " $ ( $Type ) .log" - force}
971972 $LogDir = (Join-Path $Dir " Logs" )
972973 $MinerDir = Split-Path $_.Path
973974 $LaunchCodes = @ {}
@@ -1175,6 +1176,7 @@ if($Log -eq 12)
11751176 $DecayStart = Get-Date
11761177 $_.New = $true
11771178 $_.Activated ++
1179+ if (Test-Path " .\Logs\$ ( $Type ) .log" ){Remove-Item " $ ( $Type ) .log" - force}
11781180 $LogDir = (Join-Path $Dir " Logs" )
11791181 $MinerDir = Split-Path $_.Path
11801182 $LaunchCodes = @ {}
You can’t perform that action at this time.
0 commit comments