summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f33cbe)
raw | patch | inline | side by side (parent: 4f33cbe)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 23 Feb 2006 07:26:28 +0000 (07:26 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 23 Feb 2006 07:26:28 +0000 (07:26 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@766 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_fetch.c | patch | blob | history |
diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c
index bc1557d985215863cef02e8a13feabda80f55aa8..59f17c17f4dd9cf35493570ec902dafc8f75aff1 100644 (file)
--- a/src/rrd_fetch.c
+++ b/src/rrd_fetch.c
FILE *in_file;
time_t cal_start,cal_end, rra_start_time,rra_end_time;
long best_full_rra=0, best_part_rra=0, chosen_rra=0, rra_pointer=0;
- long best_step_diff=0, tmp_step_diff=0, tmp_match=0, best_match=0;
+ long best_full_step_diff=0, best_part_step_diff=0, tmp_step_diff=0, tmp_match=0, best_match=0;
long full_match, rra_base;
long start_offset, end_offset;
int first_full = 1;
/* best full match */
if(cal_end >= *end
&& cal_start <= *start){
- if (first_full || (tmp_step_diff < best_step_diff)){
+ if (first_full || (tmp_step_diff < best_full_step_diff)){
first_full=0;
- best_step_diff = tmp_step_diff;
+ best_full_step_diff = tmp_step_diff;
best_full_rra=i;
#ifdef DEBUG
fprintf(stderr,"best full match so far\n");
if (first_part ||
(best_match < tmp_match) ||
(best_match == tmp_match &&
- tmp_step_diff < best_step_diff)){
+ tmp_step_diff < best_part_step_diff)){
#ifdef DEBUG
fprintf(stderr,"best partial so far\n");
#endif
first_part=0;
best_match = tmp_match;
- best_step_diff = tmp_step_diff;
+ best_part_step_diff = tmp_step_diff;
best_part_rra =i;
} else {
#ifdef DEBUG