Browse Source

Updated usage example

Paul Trost 11 years ago
parent
commit
3316470050
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/Disk/SMART.pm

+ 4 - 1
lib/Disk/SMART.pm

@@ -19,9 +19,12 @@ Disk::SMART - Provides an interface to smartctl to return disk stats and to run
 =head1 SYNOPSIS
 =head1 SYNOPSIS
 
 
 Disk::SMART is an object oriented module that provides an interface to get SMART disk info from a device as well as initiate testing.
 Disk::SMART is an object oriented module that provides an interface to get SMART disk info from a device as well as initiate testing.
+
     use Disk::SMART;
     use Disk::SMART;
 
 
-    my $smart = Disk::SMART->new('/dev/sda');
+    my $smart = Disk::SMART->new('/dev/sda', '/dev/sdb');
+
+    my $disk_health = $smart->get_disk_health('/dev/sda');
 
 
 =cut
 =cut