瀏覽代碼

Updated usage example

Paul Trost 11 年之前
父節點
當前提交
3316470050
共有 1 個文件被更改,包括 4 次插入1 次删除
  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
 
 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;
 
-    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