From: Tobias Oetiker Date: Sat, 21 Mar 2009 10:45:40 +0000 (+0000) Subject: remove excess flush calls ... X-Git-Tag: 1.4.0~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1de9a88c25d2006aa6de0b81667a0eec508e6e60;p=thirdparty%2Frrdtool-1.x.git remove excess flush calls ... git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1764 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_hw.c b/src/rrd_hw.c index e6b23dbe..af224fd0 100644 --- a/src/rrd_hw.c +++ b/src/rrd_hw.c @@ -270,7 +270,6 @@ int apply_smoother( baseline[j]; } /* flush cdp to disk */ - rrd_flush(rrd_file); if (rrd_seek(rrd_file, sizeof(stat_head_t) + rrd->stat_head->ds_cnt * sizeof(ds_def_t) + rrd->stat_head->rra_cnt * sizeof(rra_def_t) + @@ -293,7 +292,6 @@ int apply_smoother( /* endif CF_SEASONAL */ /* flush updated values to disk */ - rrd_flush(rrd_file); if (rrd_seek(rrd_file, rra_start, SEEK_SET)) { rrd_set_error("apply_smoother: seek to pos %d failed", rra_start); free(rrd_values); @@ -308,7 +306,6 @@ int apply_smoother( return -1; } - rrd_flush(rrd_file); free(rrd_values); free(baseline); return 0;