fix-stats-cacheex #18
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: mardock2009/oscam-2.26.01-11942-802-with-Advanced-fake-dcw-detection#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-stats-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Poprawiłem problem z logowaniem hit w CacheEX Stats gdy funkcja cwvote jest włączona.
Przyczyna problemu:
W funkcji
cw_vote_addw plikuoscam-ecm.c, gdy CW pochodzi z cache (CacheEX), wywoływana jest z parametremrdr = ecm->selected_reader. Problem polegał na tym, że:rdrnie jest NULL (czyli jest ustawiony naecm->selected_reader), kod sprawdzał tylkocacheex_reader(rdr)aby ustalić czy jest to CacheEXecm->selected_readerbył prawdziwym readerem (nie wirtualnym CacheEX), wtedy flagais_cacheexbyła ustawiana na 0has_cacheex_votenie była ustawiana na 1 dla głosów z CacheEXer->cacheex_srcbył ustawiony (co oznacza że CW faktycznie pochodzi z CacheEX), flaga pozostawała 0Zastosowana poprawka:
Dodałem dodatkowe sprawdzenie w bloku
if (rdr)w funkcjicw_vote_add:Ta poprawka zapewnia, że gdy CW pochodzi z CacheEX (nawet jeśli
selected_readernie jest CacheEX readerem), flagahas_cacheex_votebędzie poprawnie ustawiana, co pozwoli na zliczanie hit w CacheEX Stats.