Skip to content

Commit f60653b

Browse files
committed
mpd set round down
1 parent 6647558 commit f60653b

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

matchengine/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"log": {
88
"path": "/var/log/trade/matchengine",
9+
"num": 20,
910
"flag": "fatal,error,warn,info,debug,trace"
1011
},
1112
"alert": {

readhistroy/rh_main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ int main(int argc, char *argv[])
7070
if (ret < 0) {
7171
error(EXIT_FAILURE, errno, "init process fail: %d", ret);
7272
}
73-
ret = init_mpd();
74-
if (ret < 0) {
75-
error(EXIT_FAILURE, errno, "init mpd fail: %d", ret);
76-
}
7773
ret = init_log();
7874
if (ret < 0) {
7975
error(EXIT_FAILURE, errno, "init log fail: %d", ret);

utils/ut_decimal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ mpd_t *mpd_zero;
1414
int init_mpd(void)
1515
{
1616
mpd_ieee_context(&mpd_ctx, MPD_DECIMAL128);
17+
mpd_ctx.round = MPD_ROUND_DOWN;
1718

1819
mpd_one = mpd_new(&mpd_ctx);
1920
mpd_set_string(mpd_one, "1", &mpd_ctx);

0 commit comments

Comments
 (0)