Added comments
This commit is contained in:
		| @@ -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"> | <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> | 	<s:Boolean x:Key="/Default/UserDictionary/Words/=physicaldrive/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> | ||||||
| @@ -39,6 +39,7 @@ public partial class Watchdog : BackgroundService | |||||||
|  |  | ||||||
|         while (!stoppingToken.IsCancellationRequested) |         while (!stoppingToken.IsCancellationRequested) | ||||||
|         { |         { | ||||||
|  |             // Run "hpssacli" to query disk status | ||||||
|             BufferedCommandResult hpSsaCliResult = await Cli.Wrap(hpSsaCli) |             BufferedCommandResult hpSsaCliResult = await Cli.Wrap(hpSsaCli) | ||||||
|                 .WithArguments(new[] { "controller", "slot=1", "physicaldrive", "all", "show" }) |                 .WithArguments(new[] { "controller", "slot=1", "physicaldrive", "all", "show" }) | ||||||
|                 .WithWorkingDirectory(workingDirectory) |                 .WithWorkingDirectory(workingDirectory) | ||||||
| @@ -57,7 +58,8 @@ public partial class Watchdog : BackgroundService | |||||||
|                 if (!allHealthy) |                 if (!allHealthy) | ||||||
|                 { |                 { | ||||||
|                     _logger.LogError("One or more disks reported faulty status"); |                     _logger.LogError("One or more disks reported faulty status"); | ||||||
|                      |  | ||||||
|  |                     // Make some noise! | ||||||
|                     await Cli.Wrap(pcBeeper) |                     await Cli.Wrap(pcBeeper) | ||||||
|                         .WithArguments(new[] { "-f", "3000", "-d", "500" }) |                         .WithArguments(new[] { "-f", "3000", "-d", "500" }) | ||||||
|                         .WithWorkingDirectory(workingDirectory) |                         .WithWorkingDirectory(workingDirectory) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user