SATIP: Try to improve the uncorrectable error counter

This commit is contained in:
Jaroslav Kysela 2014-04-22 11:08:43 +02:00
parent 20880cc287
commit 08e0e4ebfd

View file

@ -1072,7 +1072,8 @@ satip_frontend_input_thread ( void *aux )
if (seq == -1)
seq = nseq;
else if (((seq + 1) & 0xffff) != nseq)
mmi->mmi_stats.unc++;
mmi->mmi_stats.unc += ((c - pos) / 188) *
(uint32_t)((uint16_t)nseq-(uint16_t)(seq+1));
seq = nseq;
/* Process */
sbuf_append(&sb, p + pos, c - pos);