Skip to content

Commit 5f2edd3

Browse files
committed
99 percent
1 parent 3187345 commit 5f2edd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rthist.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ double hist_ckp( int transaction )
5050
total = tmp = line_set = 0;
5151
line = MAXREC * REC_PER_SEC;
5252
for( i=0; i<(MAXREC * REC_PER_SEC); i++){
53-
total += cur_hist[transaction][i]*i;
54-
if (cur_hist[transaction][i] > 0) {
55-
}
53+
//total += cur_hist[transaction][i]*i;
54+
total += i;
5655
}
5756
for( i=0; i<(MAXREC * REC_PER_SEC); i++){
58-
tmp += cur_hist[transaction][i]*i;
57+
//tmp += cur_hist[transaction][i]*i;
58+
tmp += i;
5959
total_hist[transaction][i] += cur_hist[transaction][i];
6060
cur_hist[transaction][i] = 0;
61-
if (( tmp >= (total*95/100) ) && (line_set ==0)){
61+
if (( tmp >= (total*99/100) ) && (line_set ==0)){
6262
line = i;
6363
line_set=1;
6464
}

0 commit comments

Comments
 (0)