From 105c641d2d9bf271bad254c22b35a1e53032d60a Mon Sep 17 00:00:00 2001 From: Llewellyn Kruger Date: Wed, 21 Jun 2017 18:25:00 +0200 Subject: [PATCH] Update README.md --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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(); + } ```