Code

Updated extractDS_path.dpatch to current version for migrate-3-4.px.
authorSebastian Harl <sh@tokkee.org>
Sun, 20 May 2007 00:45:14 +0000 (02:45 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 20 May 2007 00:45:14 +0000 (02:45 +0200)
debian/patches/extractDS_path.dpatch

index e8395c5752020ba223917315338b10249bf41eb0..5c95cf135e3a5be9415b74cdc785dc6fec0c7a7a 100755 (executable)
@@ -8,7 +8,7 @@
 diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
 --- a/contrib/migrate-3-4.px
 +++ b/contrib/migrate-3-4.px
-@@ -166,7 +166,7 @@ for (@Files)
+@@ -165,7 +165,7 @@ for (@Files)
                        my $src_ds = $src_dses->[$i];
                        $dest->{'type_instance'} = $type_instances->[$i];
                        $dest_filename = get_filename ($dest);
@@ -17,3 +17,25 @@ diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
                }
        }
        elsif (exists ($TypeRename{$orig->{'type'}}))
+@@ -360,17 +360,17 @@ sub special_disk
+               $OutDirs{$dest_directory} = 1;
+       }
+-      print "./extractDS.px -i '$InDir/$orig_filename' -s 'rmerged' -s 'wmerged' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
++      print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rmerged' -s 'wmerged' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
+       $dest->{'type'} = 'disk_octets';
+       $dest_filename = get_filename ($dest);
+-      print "./extractDS.px -i '$InDir/$orig_filename' -s 'rbytes' -s 'wbytes' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
++      print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rbytes' -s 'wbytes' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
+       $dest->{'type'} = 'disk_ops';
+       $dest_filename = get_filename ($dest);
+-      print "./extractDS.px -i '$InDir/$orig_filename' -s 'rcount' -s 'wcount' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
++      print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rcount' -s 'wcount' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
+       $dest->{'type'} = 'disk_time';
+       $dest_filename = get_filename ($dest);
+-      print "./extractDS.px -i '$InDir/$orig_filename' -s 'rtime' -s 'wtime' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
++      print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s 'rtime' -s 'wtime' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n";
+ }