Browse Source

Another fixup for setting ecm_change_time.

Do not report broken time if the ECM change is exactly at 0 seconds.
Georgi Chorbadzhiyski 11 years ago
parent
commit
5ef7e1add9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tables.c

+ 1
- 1
tables.c View File

@@ -333,7 +333,7 @@ static void __process_ecm(struct ts *ts, uint16_t pid, uint8_t *ts_packet) {
333 333
 	int duplicate = ts_privsec_is_same(ts->ecm, ts->last_ecm);
334 334
 	if (duplicate && !ts->is_cw_error)
335 335
 		ts->ecm_duplicate_count++;
336
-	if (!ts->ecm_change_time.tv_sec)
336
+	if (!ts->ecm_change_time.tv_sec && !ts->ecm_change_time.tv_usec) // The first time
337 337
 		gettimeofday(&ts->ecm_change_time, NULL);
338 338
 	if (!duplicate || ts->is_cw_error) {
339 339
 		if (ts->ecm_cw_log) {

Loading…
Cancel
Save