X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_restore.c;h=c301736efaa2251dee8939e66390039f2a50e1f9;hb=1b8f812fbf8d14bad0fcf9749ac71f640bda2868;hp=3dc8931a28d1286897978212d52c16cd52960298;hpb=7383625ce0413ce5dbcc0ced4ee4873c6df37735;p=rrdtool.git diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 3dc8931..c301736 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -383,6 +383,11 @@ int xml2rrd( read_tag(&ptr2, "seasonal_smooth_idx", "%lu", &(rrd->rra_def[rra_index]. par[RRA_seasonal_smooth_idx].u_cnt)); + if (atoi(rrd->stat_head->version) >= 4) { + read_tag(&ptr2, "smoothing_window", "%lf", + &(rrd->rra_def[rra_index]. + par[RRA_seasonal_smoothing_window].u_val)); + } read_tag(&ptr2, "dependent_rra_idx", "%lu", &(rrd->rra_def[rra_index]. par[RRA_dependent_rra_idx].u_cnt));