Changeset 6610


Ignore:
Timestamp:
04/17/12 08:30:35 (12 years ago)
Author:
corsair
Message:

emm cache fixed

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-reader.c

    r6598 r6610  
    646646            cl->emmcache[i].count++;
    647647            if (reader->cachemm)
    648                 ecs=(cl->emmcache[i].count > reader->rewritemm) ? 1 : 2;
     648                ecs=(cl->emmcache[i].count > reader->rewritemm) ? 2 : 1; //skip : rewrite
    649649            else
    650650                ecs=1;
     
    652652        }
    653653    }
     654
     655    //Ecs=0 not found in cache
     656    //Ecs=1 found in cache, rewrite emm
     657    //Ecs=2 skip
    654658
    655659  if ((rc=ecs)<2)
  • trunk/oscam.c

    r6598 r6610  
    35383538                au_cl->emmcache[i].count++;
    35393539                cs_debug_mask(D_EMM, "emm found in cache: reader %s count %d rewrite %d", aureader->label, au_cl->emmcache[i].count, aureader->rewritemm);
    3540                 if (aureader->cachemm && (au_cl->emmcache[i].count < aureader->rewritemm)) {
     3540                if (aureader->cachemm && (au_cl->emmcache[i].count > aureader->rewritemm)) {
    35413541                    reader_log_emm(aureader, ep, i, 2, NULL);
    35423542                    return;
Note: See TracChangeset for help on using the changeset viewer.