diff ServerMonitor/Objects/Checks/DiskSpaceCheck.cs @ 4:3142e52cbe69

Lots more progress
author Brad Greco <brad@bgreco.net>
date Sun, 10 Feb 2019 20:51:26 -0500
parents 96f0b028176d
children a36cc5c123f4
line wrap: on
line diff
--- a/ServerMonitor/Objects/Checks/DiskSpaceCheck.cs	Fri Jan 11 22:34:18 2019 -0500
+++ b/ServerMonitor/Objects/Checks/DiskSpaceCheck.cs	Sun Feb 10 20:51:26 2019 -0500
@@ -10,7 +10,7 @@
     [DisplayName("Disk space check"), Description("Check the remaining free disk space"), DisplayWeight(11)]
     public class DiskSpaceCheck : SshCheck
     {
-        public override string Command { get => string.Format(base.Command, Device); }
+        public override string Command => string.Format(base.Command, Device);
 
         public string Device { get; set; }
 
@@ -29,7 +29,7 @@
         protected override List<CheckResult> ProcessCommandResult(string output, int exitCode)
         {
             List<CheckResult> results = base.ProcessCommandResult(output, exitCode);
-            if (results.Any(r => r.CheckStatus != CheckStatus.Success))
+            if (results.Any(r => r.Failed))
                 return results;
 
             List<string> lines = output.Split('\n').ToList();