Skip to content

Commit

Permalink
Merge pull request #160 from en/patch-1
Browse files Browse the repository at this point in the history
Fix problem using wrong dict in clear_kline
  • Loading branch information
haipome committed Mar 12, 2019
2 parents 48defeb + 010bada commit b720f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marketprice/mp_message.c
Expand Up @@ -779,7 +779,7 @@ static void clear_kline(void)
while ((entry = dict_next(iter)) != NULL) {
struct market_info *info = entry->val;
clear_dict(info->sec, now - settings.sec_max);
clear_dict(info->sec, now / 60 * 60 - settings.min_max * 60);
clear_dict(info->min, now / 60 * 60 - settings.min_max * 60);
clear_dict(info->hour, now / 3600 * 3600 - settings.hour_max * 3600);
}
dict_release_iterator(iter);
Expand Down

0 comments on commit b720f56

Please sign in to comment.