X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_dump.c;h=7ad85b20e6a53e86f43b6a3517a50f69bbef7c64;hb=3d068765c6b6c8d096e0692f22e5b5e407948b54;hp=6d743df4eb27f61b7918c4c59d91ed1766ff7132;hpb=2593a69e9485cf67c9654a2667f85971275004fe;p=rrdtool.git diff --git a/src/rrd_dump.c b/src/rrd_dump.c index 6d743df..7ad85b2 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.23 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.3rc2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * rrd_dump Display a RRD ***************************************************************************** @@ -98,6 +98,10 @@ 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 +117,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 +201,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);