(4 + Size)

This commit is contained in:
大石头 2017-04-15 15:19:07 +08:00
parent 9bdbd7b6af
commit cda7f099a1
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ void HistoryStore::Report()
if (!len) return;
// 根据每次最大上报长度,计算可以上报多少条历史记录
int n = MaxReport / Size;
int len2 = n * Size;
int n = MaxReport / (4 + Size);
int len2 = n * (4 + Size);
if (len2 > len) len2 = len;
ds_printf("HistoryStore::Report %d/%d \r\n", len2, len);