Added comments

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-07-12 17:26:58 +02:00
parent 3d99bd8c1b
commit 6f4142e8b6
2 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=hpssacli/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=physicaldrive/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

View File

@ -39,6 +39,7 @@ public partial class Watchdog : BackgroundService
while (!stoppingToken.IsCancellationRequested)
{
// Run "hpssacli" to query disk status
BufferedCommandResult hpSsaCliResult = await Cli.Wrap(hpSsaCli)
.WithArguments(new[] { "controller", "slot=1", "physicaldrive", "all", "show" })
.WithWorkingDirectory(workingDirectory)
@ -57,7 +58,8 @@ public partial class Watchdog : BackgroundService
if (!allHealthy)
{
_logger.LogError("One or more disks reported faulty status");
// Make some noise!
await Cli.Wrap(pcBeeper)
.WithArguments(new[] { "-f", "3000", "-d", "500" })
.WithWorkingDirectory(workingDirectory)