[GRC_FRAME].
blue, im->graph_col[GRC_FRAME].alpha);
if (im->gdes[i].dash) {
- // make box borders in legend dashed if the graph is dashed
+ /* make box borders in legend dashed if the graph is dashed */
double dashes[] = {
3.0
};
hw_multiplicative_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
- 1.0 // identity value
+ 1.0 /* identity value */
};
static hw_functions_t hw_additive_functions = {
hw_additive_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
- 0.0 // identity value
+ 0.0 /* identity value */
};
rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val = pdp_val;
__rrd_read(rrd->live_head, live_head_t,
1);
}
-//XXX: This doesn't look like it needs madvise
__rrd_read(rrd->pdp_prep, pdp_prep_t,
rrd->stat_head->ds_cnt);
-
-//XXX: This could benefit from madvise()ing
__rrd_read(rrd->cdp_prep, cdp_prep_t,
rrd->stat_head->rra_cnt * rrd->stat_head->ds_cnt);
-
-//XXX: This could benefit from madvise()ing
__rrd_read(rrd->rra_ptr, rra_ptr_t,
rrd->stat_head->rra_cnt);
rrd_file->pos = ret;
#endif
/* mimic fseek, which returns 0 upon success */
- return ret < 0; //XXX: or just ret to mimic lseek
+ return ret < 0; /*XXX: or just ret to mimic lseek */
}
if (isnan(rpnstack->s[stptr - 1])) {
rpnstack->s[stptr - 1] = rpnstack->s[stptr];
} else if (isnan(rpnstack->s[stptr])) {
- //rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1];
+ /* NOOP */
+ /* rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1]; */
} else {
rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1]
+ rpnstack->s[stptr];
-// compatibility routines, non reentrant ....
+/* compatibility routines, non reentrant .... */
#include <string.h>
#include <time.h>