X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_dump.c;h=eb9b4690e0fbb22f1788b95711695a80a8fa3499;hb=f33dd0fcc721e4efb1ce3be0d672e00e587d7491;hp=0b9310334734374989caef73d4a52995d0250bb3;hpb=8a21b9cb276aa9b7401533474019f4ee1251a377;p=rrdtool.git diff --git a/src/rrd_dump.c b/src/rrd_dump.c index 0b93103..eb9b469 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -176,6 +176,7 @@ int rrd_dump_r( fprintf(out_file, "\t\t\n"); switch (cf_conv(rrd.rra_def[i].cf_nam)) { case CF_HWPREDICT: + case CF_MHWPREDICT: fprintf(out_file, "\t\t %0.10e \n", rrd.rra_def[i].par[RRA_hw_alpha].u_val); fprintf(out_file, "\t\t %0.10e \n", @@ -255,6 +256,7 @@ int rrd_dump_r( } switch (cf_conv(rrd.rra_def[i].cf_nam)) { case CF_HWPREDICT: + case CF_MHWPREDICT: value = rrd.cdp_prep[i * rrd.stat_head->ds_cnt + ii].scratch[CDP_hw_intercept].u_val; @@ -421,9 +423,8 @@ int rrd_dump_r( } fprintf(out_file, "\n"); rrd_free(&rrd); - close(rrd_file->fd); if (out_file != stdout) { fclose(out_file); } - return (0); + return rrd_close(rrd_file); }