We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3187345 commit 5f2edd3Copy full SHA for 5f2edd3
src/rthist.c
@@ -50,15 +50,15 @@ double hist_ckp( int transaction )
50
total = tmp = line_set = 0;
51
line = MAXREC * REC_PER_SEC;
52
for( i=0; i<(MAXREC * REC_PER_SEC); i++){
53
- total += cur_hist[transaction][i]*i;
54
- if (cur_hist[transaction][i] > 0) {
55
- }
+ //total += cur_hist[transaction][i]*i;
+ total += i;
56
}
57
58
- tmp += cur_hist[transaction][i]*i;
+ //tmp += cur_hist[transaction][i]*i;
+ tmp += i;
59
total_hist[transaction][i] += cur_hist[transaction][i];
60
cur_hist[transaction][i] = 0;
61
- if (( tmp >= (total*95/100) ) && (line_set ==0)){
+ if (( tmp >= (total*99/100) ) && (line_set ==0)){
62
line = i;
63
line_set=1;
64
0 commit comments