Skip to content

Commit 4921c1e

Browse files
author
root
committed
99th percentage
1 parent 5f2edd3 commit 4921c1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rthist.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ 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-
total += i;
53+
total += cur_hist[transaction][i];
54+
//total += i;
5555
}
5656
for( i=0; i<(MAXREC * REC_PER_SEC); i++){
57-
//tmp += cur_hist[transaction][i]*i;
58-
tmp += i;
57+
tmp += cur_hist[transaction][i];
58+
//tmp += i;
5959
total_hist[transaction][i] += cur_hist[transaction][i];
6060
cur_hist[transaction][i] = 0;
6161
if (( tmp >= (total*99/100) ) && (line_set ==0)){

0 commit comments

Comments
 (0)