Skip to content

Commit 683fcce

Browse files
committed
Log Changes
1 parent aa31cba commit 683fcce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Build/Unix/Hive/HiveCmd.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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}

MM.Hive.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 = @{}

0 commit comments

Comments
 (0)