summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3be619a)
raw | patch | inline | side by side (parent: 3be619a)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 11 Nov 2003 19:38:03 +0000 (19:38 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 11 Nov 2003 19:38:03 +0000 (19:38 +0000) |
-- David M. Grimes <dgrimes@navisite.com>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@217 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@217 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_update.c | patch | blob | history |
index 7217041ee4bee2ca1a2231b7a9d80dcd8718a9bc..44312bd0fef7b6af222a0d17b986a6f1977124c8 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
*****************************************************************************
* $Id$
* $Log$
+ * Revision 1.13 2003/11/11 19:38:03 oetiker
+ * rrd files should NOT change size ever ... bulk update code wa buggy.
+ * -- David M. Grimes <dgrimes@navisite.com>
+ *
* Revision 1.12 2003/09/04 13:16:12 oetiker
* should not assigne but compare ... grrrrr
*
/* write other rows of the bulk update, if any */
scratch_idx = CDP_secondary_val;
- for ( ; rra_step_cnt[i] > 1;
- rra_step_cnt[i]--, rrd.rra_ptr[i].cur_row++)
+ for ( ; rra_step_cnt[i] > 1; rra_step_cnt[i]--)
{
- if (rrd.rra_ptr[i].cur_row == rrd.rra_def[i].row_cnt)
+ if (++rrd.rra_ptr[i].cur_row == rrd.rra_def[i].row_cnt)
{
#ifdef DEBUG
fprintf(stderr,"Wraparound for RRA %s, %lu updates left\n",