projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misc fixed and TREND and reduce functionality by
[rrdtool.git]
/
src
/
rrd_resize.c
diff --git
a/src/rrd_resize.c
b/src/rrd_resize.c
index
3e67af7
..
6b1648e
100644
(file)
--- a/
src/rrd_resize.c
+++ b/
src/rrd_resize.c
@@
-170,8
+170,10
@@
rrd_resize(int argc, char **argv)
}
/* Move the rest of the CDPs
*/
}
/* Move the rest of the CDPs
*/
- while (!(feof(infile))) {
- fread(&buffer,sizeof(rrd_value_t),1,infile);
+ while (1) {
+ fread(&buffer,sizeof(rrd_value_t),1,infile);
+ if (feof(infile))
+ break;
fwrite(&buffer,sizeof(rrd_value_t),1,outfile);
}
rrdnew.rra_def[target_rra].row_cnt += modify;
fwrite(&buffer,sizeof(rrd_value_t),1,outfile);
}
rrdnew.rra_def[target_rra].row_cnt += modify;