Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
haipome committed Apr 20, 2017
1 parent a699094 commit 509717c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marketprice/mp_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static int flush_deals(redisContext *context, const char *market, list_t *list)
free(argvlen);
freeReplyObject(reply);

reply = redisCmd(context, "LTRIM m:%s:deals 0 9999", market);
reply = redisCmd(context, "LTRIM m:%s:deals 0 %d", market, MARKET_DEALS_MAX - 1);
if (reply) {
freeReplyObject(reply);
}
Expand Down

0 comments on commit 509717c

Please sign in to comment.