X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_dump.c;h=f84adbc3a4c8e0cab5c568fb0e9e6eb386019504;hb=1876d5973e608d97c27361d09229ec10058d4b11;hp=dadd34d3a2c2bc32164cedffdf944a20631a6b96;hpb=7383625ce0413ce5dbcc0ced4ee4873c6df37735;p=rrdtool.git diff --git a/src/rrd_dump.c b/src/rrd_dump.c index dadd34d..f84adbc 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -98,6 +98,8 @@ int rrd_dump_r( out_file = stdout; } + fputs("", out_file); + fputs("", out_file); fputs("", out_file); fputs("", out_file); if (atoi(rrd.stat_head->version) <= 3) { @@ -113,8 +115,8 @@ int rrd_dump_r( #else # error "Need strftime" #endif - fprintf(out_file, "\t %ld \n\n", - rrd.live_head->last_up, somestring); + fprintf(out_file, "\t %lu \n\n", + (unsigned long) rrd.live_head->last_up, somestring); for (i = 0; i < rrd.stat_head->ds_cnt; i++) { fprintf(out_file, "\t\n"); fprintf(out_file, "\t\t %s \n", rrd.ds_def[i].ds_nam); @@ -197,6 +199,12 @@ int rrd_dump_r( fprintf(out_file, "\t\t %lu \n", rrd.rra_def[i].par[RRA_seasonal_smooth_idx].u_cnt); + if (atoi(rrd.stat_head->version) >= 4) { + fprintf(out_file, + "\t\t %0.10e \n", + rrd.rra_def[i].par[RRA_seasonal_smoothing_window]. + u_val); + } fprintf(out_file, "\t\t %lu \n", rrd.rra_def[i].par[RRA_dependent_rra_idx].u_cnt);