Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SysManager/SysManager/Services/MemoryTestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task<MemoryErrorSummary> CheckErrorLogsAsync(CancellationToken ct =
catch (UnauthorizedAccessException) { /* EventLog access denied */ }

return new MemoryErrorSummary(wheaCount, diagCount, lastError);
}, ct);
}, ct).ConfigureAwait(false);
}

/// <summary>
Expand Down Expand Up @@ -142,6 +142,6 @@ public async Task<IReadOnlyList<MemoryModuleHealth>> GetModulesAsync()
catch (FormatException) { /* malformed WMI value */ }
catch (OverflowException) { /* WMI value out of range */ }
return list;
});
}).ConfigureAwait(false);
}
}
2 changes: 1 addition & 1 deletion SysManager/SysManager/Services/SystemReportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task<string> GenerateReportAsync(CancellationToken ct = default)
var snapshot = await _sysInfo.CaptureAsync(ct).ConfigureAwait(false);
var diskHealth = await _diskHealth.CollectAsync(ct).ConfigureAwait(false);

return await Task.Run(() => BuildReport(snapshot, diskHealth), ct);
return await Task.Run(() => BuildReport(snapshot, diskHealth), ct).ConfigureAwait(false);
}

private static string BuildReport(SystemSnapshot snapshot, IReadOnlyList<DiskHealthReport> diskHealth)
Expand Down
8 changes: 4 additions & 4 deletions SysManager/SysManager/Services/TemperatureService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public async Task<List<TemperatureReading>> ReadAllAsync()

if (isAdmin)
{
await Task.Run(() => ReadViaLibreHardwareMonitor(readings));
await Task.Run(() => ReadViaLibreHardwareMonitor(readings)).ConfigureAwait(false);

// LHM storage often has bad names — enrich from DiskHealthService
await EnrichStorageNamesAsync(readings);
await EnrichStorageNamesAsync(readings).ConfigureAwait(false);
}
else
{
await Task.Run(() => ReadNvidiaGpuTemperatures(readings));
await ReadDiskTemperaturesAsync(readings);
await Task.Run(() => ReadNvidiaGpuTemperatures(readings)).ConfigureAwait(false);
await ReadDiskTemperaturesAsync(readings).ConfigureAwait(false);

readings.Add(new TemperatureReading("CPU", "CPU Package", null, RequiresAdmin: true));
}
Expand Down
Loading