Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
krugertech authored Jun 21, 2017
1 parent 27aac1c commit 105c641
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
```

0 comments on commit 105c641

Please sign in to comment.