Skip to content

Commit

Permalink
Merge pull request #179 from MrPig91/MrPig91-patch-1-Plot-Check
Browse files Browse the repository at this point in the history
Update Start-PlotCopyPhase.ps1
  • Loading branch information
MrPig91 authored Jul 16, 2021
2 parents 35d7088 + 7863f7d commit cb85fd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PSChiaPlotter/Private/Start-PlotCopyPhase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function Start-PlotCopyPhase {
$RunToCopy.Phase = "Copy"
$RunToCopy.CurrentPhaseProgress = 0
$RunToCopy.Progress = 98
$ChiaPath = (Get-Item -Path "$ENV:LOCALAPPDATA\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\chia.exe").FullName
if ($RunToCopy.PlottingParameters.AlternativePlotterEnabled -eq $true){
$tempFinalPath = $RunToCopy.PlottingParameters.TempVolume.DirectoryPath
}
Expand Down Expand Up @@ -58,10 +59,10 @@ function Start-PlotCopyPhase {
$CopyRunJob.CompletedPlotCount++
$RunToCopy.ParentQueue.CompletedPlotCount++
$DataHash.MainViewModel.CompletedRuns.Add($RunToCopy)
$RunToCopy.CheckPlotPowershellCommand = "&'$ChiaPath' plots check -g $plotid"
$RunToCopy.CheckPlotPowershellCommand = "&'$ChiaPath' plots check -g $($RunToCopy.PlotId)"
Update-ChiaGUISummary -Success
if ($RunToCopy.PlottingParameters.AutoPlotCheckEnabled){
$PlotCheckResults = Test-ChiaPlot -Path $plotid -ErrorAction Continue
$PlotCheckResults = Test-ChiaPlot -Path $RunToCopy.PlotId -ErrorAction Continue
if ($Null -ne $PlotCheckResults){
$RunToCopy.PlotCheckRatio = [math]::Round($PlotCheckResults.Ratio,2)
}
Expand Down Expand Up @@ -92,4 +93,4 @@ function Start-PlotCopyPhase {
}.AddParameters($PSBoundParameters)
$StartCopyPhaseScript.RunspacePool = $ScriptsHash.RunspacePool
[void]$StartCopyPhaseScript.BeginInvoke()
}
}

0 comments on commit cb85fd4

Please sign in to comment.