优化打印
This commit is contained in:
parent
08ab839f4b
commit
702cc168f3
@ -1111,7 +1111,6 @@ int main (int argc, char *argv[])
|
|||||||
ranges_fp = fopen(ranges_filename, "r");
|
ranges_fp = fopen(ranges_filename, "r");
|
||||||
|
|
||||||
if (fscanf(ranges_fp, "%s %s", range_count_str, range_frame_count_str) != EOF) {
|
if (fscanf(ranges_fp, "%s %s", range_count_str, range_frame_count_str) != EOF) {
|
||||||
fprintf(stderr, "%s\n", range_frame_count_str);
|
|
||||||
range_frame_count = parse_int(range_frame_count_str, "range_frame_count", NULL);
|
range_frame_count = parse_int(range_frame_count_str, "range_frame_count", NULL);
|
||||||
range_count = parse_int(range_count_str, "range_count", NULL);
|
range_count = parse_int(range_count_str, "range_count", NULL);
|
||||||
}
|
}
|
||||||
@ -1259,7 +1258,7 @@ int main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
before_range_frame_count += i - init_frame;
|
before_range_frame_count += i - init_frame;
|
||||||
fprintf(stderr, "\rProgress: %d/%d - Lines: %d\n", before_range_frame_count, range_frame_count, num_of_events);
|
fprintf(stderr, "\rProgress: %d/%d - Lines: %d", before_range_frame_count, range_frame_count, num_of_events);
|
||||||
|
|
||||||
/* Add last event, if available */
|
/* Add last event, if available */
|
||||||
if (have_line)
|
if (have_line)
|
||||||
@ -1283,6 +1282,8 @@ int main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
|
||||||
if (sup_output)
|
if (sup_output)
|
||||||
{
|
{
|
||||||
close_sup_writer(sw);
|
close_sup_writer(sw);
|
||||||
|
Loading…
Reference in New Issue
Block a user