summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ac1279)
raw | patch | inline | side by side (parent: 0ac1279)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 12 May 2008 16:15:02 +0000 (16:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 12 May 2008 16:15:02 +0000 (16:15 +0000) |
src/rrd_graph.c | patch | blob | history | |
src/rrd_hw.c | patch | blob | history | |
src/rrd_open.c | patch | blob | history | |
src/rrd_rpncalc.c | patch | blob | history | |
src/win32comp.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index a1a0da59f33866c40c109f162246094ee7be8a87..2a62203a4add7f9b766ffc0e9bb941cf10eeac81 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
[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
};
diff --git a/src/rrd_hw.c b/src/rrd_hw.c
index 3b1ba7c68612d056bb9fbca84f26131f1d82cb2f..ec4bbfa80e2a19d47907c6d745e7da618306ff99 100644 (file)
--- a/src/rrd_hw.c
+++ b/src/rrd_hw.c
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;
diff --git a/src/rrd_open.c b/src/rrd_open.c
index 4acaa8fd13fa4618e7a2b47393941132f1aa596d..d8c63b881cb12e4525858a31fb772ca71543dc15 100644 (file)
--- a/src/rrd_open.c
+++ b/src/rrd_open.c
__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 */
}
diff --git a/src/rrd_rpncalc.c b/src/rrd_rpncalc.c
index d98008de2643e5c871faa10f847b573d027b1c5a..65c124ee43ad8fe0ea18f0f64f7aa0efd8c9792f 100644 (file)
--- a/src/rrd_rpncalc.c
+++ b/src/rrd_rpncalc.c
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];
diff --git a/src/win32comp.c b/src/win32comp.c
index 5f55701d95f31055303184e618a243961dfb68e4..457e69e518aa44b5d49cc5c2b37ee221beffad2c 100644 (file)
--- a/src/win32comp.c
+++ b/src/win32comp.c
-// compatibility routines, non reentrant ....
+/* compatibility routines, non reentrant .... */
#include <string.h>
#include <time.h>