From: Florian Forster Date: Thu, 17 May 2007 20:59:51 +0000 (+0200) Subject: contrib/extractDS.px: Create RRD file instead of writing to STDOUT. X-Git-Tag: collectd-4.0.0-rc10~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef14b1348206799487e8c444f16a7f7b5b89be90;p=collectd.git contrib/extractDS.px: Create RRD file instead of writing to STDOUT. This was changed in order to debug new code and then forgotten.. --- diff --git a/contrib/extractDS.px b/contrib/extractDS.px index f5370e67..3bf4b9e0 100755 --- a/contrib/extractDS.px +++ b/contrib/extractDS.px @@ -236,8 +236,7 @@ sub extract_ds my $out_fh; open ($in_fh, '-|', 'rrdtool', 'dump', $in_file) or die ("open (rrdtool): $!"); -# open ($out_fh, '|-', 'rrdtool', 'restore', '-', $out_file) or die ("open (rrdtool): $!"); - $out_fh = \*STDOUT; + open ($out_fh, '|-', 'rrdtool', 'restore', '-', $out_file) or die ("open (rrdtool): $!"); while (my $line = <$in_fh>) {