Skip to content

Commit

Permalink
Log the list of available drives
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Sep 6, 2024
1 parent 9ab00b0 commit 138a3c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runner/JobBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ protected async Task ChangeWorkingDirectoryToRamOrFastestDiskAsync()
.Where(d => d.IsReady)
.ToArray();

await LogAsync($"Drives available: {string.Join(", ", drives.Select(
d => $"Ready={d.IsReady} AvailableGB={d.AvailableFreeSpace >> 30} Path={d.RootDirectory.FullName}"))}");

if (drives.Length > 1)
{
DriveInfo drive = drives.MaxBy(d => d.AvailableFreeSpace)!;
Expand Down

0 comments on commit 138a3c5

Please sign in to comment.