Code

Updated changelog - updated to version 4.3.0~beta1.
[pkg-collectd.git] / debian / patches / migrate-hddtemp.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## migrate-hddtemp.dpatch by Florian Forster <octo@verplant.org>
3 ##
4 ## DP: contrib/migrate-3-4.px: Handle `hddtemp' graphs correctly.
6 @DPATCH@
8 --- a/contrib/migrate-3-4.px
9 +++ b/contrib/migrate-3-4.px
10 @@ -95,6 +95,7 @@ our %Subdirs =
11  our %TypeTranslate =
12  (
13         cpu => sub { $_ = shift; $_->{'plugin_instance'} = $_->{'type_instance'}; $_->{'type_instance'} = undef; $_; },
14 +       hddtemp => sub { $_ = shift; $_->{'plugin'} = 'hddtemp'; $_->{'type'} = 'temperature'; $_->{'type_instance'} = $_->{'type_instance'}; $_; },
15         if_errors => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; },
16         if_packets => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; },
17         nfs2_procedures => sub { $_ = shift; @$_{qw(plugin plugin_instance type type_instance)} = ('nfs', 'v2' . $_->{'type_instance'}, 'nfs_procedure', undef); $_; },