X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_restore.c;h=d3a2c8a91c3066d45c046c1b845e1d608a848b2c;hb=40cc8b00296079815f08c2ff55f134efae83ea69;hp=3dc8931a28d1286897978212d52c16cd52960298;hpb=7383625ce0413ce5dbcc0ced4ee4873c6df37735;p=rrdtool.git diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 3dc8931..d3a2c8a 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));