summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a46277)
raw | patch | inline | side by side (parent: 2a46277)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 17 Jul 2007 21:46:00 +0000 (21:46 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 17 Jul 2007 21:46:00 +0000 (21:46 +0000) |
program/src/rrd_open.c | patch | blob | history | |
program/src/rrd_resize.c | patch | blob | history |
diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c
index 4b9a0f9220d126b9bc94b4ced97806a2fac25a65..a01b07543a88878556e21097b4c1c6985e0f6c69 100644 (file)
--- a/program/src/rrd_open.c
+++ b/program/src/rrd_open.c
off_t newfile_size = 0;
if (rdwr & RRD_CREAT) {
+ /* yes bad inline signaling alert, we are using the
+ floatcookie to pass the size in ... only used in resize */
newfile_size = (off_t) rrd->stat_head->float_cookie;
free(rrd->stat_head);
}
index 9dcfccab95da81afce3aa7a2f421564db69d7535..c45ec14304769dc09c07d1fa1550dedc1775eb36 100644 (file)
--- a/program/src/rrd_resize.c
+++ b/program/src/rrd_resize.c
return (-1);
}
/* the size of the new file */
+ /* yes we are abusing the float cookie for this, aargh */
if ((rrdnew.stat_head = calloc(1, sizeof(stat_head_t))) == NULL) {
rrd_set_error("allocating stat_head for new RRD");
rrd_free(&rrdold);