When there are some plots in the progress or exists some additional data in the temp disk, we should not calculate the available plots remaining directly from free space.
Wrong behavior
It happens when I run Start-PlotoSpawns and there are some plots already in the progress.
When there are some plots already in the progress.
If there is no additional data in the temp disk, indicating it is a pure plotting disk, checking by
$DiskSize < ($FreeSpace + $PlotInProgressCount * 290)
We should calculate the remaining available plot by
($DiskSize - $AmountOfPlotsinProgressOccupied) / 290(Each temp file size)
If there is additional data in the temp disk, in order to avoid disk full risk, we should keep the previous calculation method.
Background
When there are some plots in the progress or exists some additional data in the temp disk, we should not calculate the available plots remaining directly from free space.
Wrong behavior
It happens when I run
Start-PlotoSpawns
and there are some plots already in the progress.Expect Behavior
Workaround
When there are some plots already in the progress.
$DiskSize < ($FreeSpace + $PlotInProgressCount * 290)
We should calculate the remaining available plot by($DiskSize - $AmountOfPlotsinProgressOccupied) / 290(Each temp file size)