off_t newfile_size = 0;
if (rdwr & RRD_CREAT) {
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);
}
newfile_size = (off_t) rrd->stat_head->float_cookie;
free(rrd->stat_head);
}
return (-1);
}
/* the size of the new file */
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);
if ((rrdnew.stat_head = calloc(1, sizeof(stat_head_t))) == NULL) {
rrd_set_error("allocating stat_head for new RRD");
rrd_free(&rrdold);