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 5f2edd3 commit 4921c1eCopy full SHA for 4921c1e
src/rthist.c
@@ -50,12 +50,12 @@ 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
- total += i;
+ total += cur_hist[transaction][i];
+ //total += i;
55
}
56
57
- //tmp += cur_hist[transaction][i]*i;
58
- tmp += i;
+ tmp += cur_hist[transaction][i];
+ //tmp += i;
59
total_hist[transaction][i] += cur_hist[transaction][i];
60
cur_hist[transaction][i] = 0;
61
if (( tmp >= (total*99/100) ) && (line_set ==0)){
0 commit comments