diff --git a/README.md b/README.md index 13e8d38..78d4f61 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,21 @@ A class library for the reading of HDD and SSD SMART registers. # Usage ```cs - var drives = Smart.GetDrives(); - - foreach (var drive in drives) - { - Console.WriteLine("-----------------------------------------------------"); - Console.WriteLine(" DRIVE ({0}): " + drive.Serial + " - " + drive.Model + " - " + drive.Type, ((drive.IsOK) ? "OK" : "BAD")); - Console.WriteLine("-----------------------------------------------------"); - Console.WriteLine(""); + var drives = Smart.GetDrives(); - Console.WriteLine("Attribute\t\t\tCurrent Worst Threshold Data Status"); - foreach (var attr in drive.SmartAttributeAttributes) - { - if (attr.HasData) - Console.WriteLine("{0}\t {1}\t {2}\t {3}\t " + attr.Data + " " + ((attr.IsOK) ? "OK" : "BAD"), attr.Name, attr.Current, attr.Worst, attr.Threshold); - } - Console.WriteLine(); - } + foreach (var drive in drives) + { + Console.WriteLine("-----------------------------------------------------"); + Console.WriteLine(" DRIVE ({0}): " + drive.Serial + " - " + drive.Model + " - " + drive.Type, ((drive.IsOK) ? "OK" : "BAD")); + Console.WriteLine("-----------------------------------------------------"); + Console.WriteLine(""); + + Console.WriteLine("Attribute\t\t\tCurrent Worst Threshold Data Status"); + foreach (var attr in drive.SmartAttributeAttributes) + { + if (attr.HasData) + Console.WriteLine("{0}\t {1}\t {2}\t {3}\t " + attr.Data + " " + ((attr.IsOK) ? "OK" : "BAD"), attr.Name, attr.Current, attr.Worst, attr.Threshold); + } + Console.WriteLine(); + } ```