[pipepar] Reduce number of log in lattice.c
Only print a probability for a few possible CRC of the last packet in order to reduce the number of logs. This allows the program to be run through ssh and to easily check wether the result is correct or not.
This commit is contained in:
parent
01acb467ee
commit
7a1801da89
|
@ -213,10 +213,13 @@ void compute_last_cumulative_metrics(
|
|||
{
|
||||
unsigned int i;
|
||||
struct stage_state state_out;
|
||||
static long nb_processed = 0;
|
||||
|
||||
compute_cumulative_metrics(p_matrix, lattice_metrics, state_in, &state_out);
|
||||
for (i = 0; i < (1 << CRC_BIT); i++)
|
||||
printf("%f\n", state_out.lattice_metrics[i]);
|
||||
if (++nb_processed == nb_packets) {
|
||||
for (i = 0; i < (1 << CRC_BIT); i += (1 << CRC_BIT)/10)
|
||||
printf("%f\n", state_out.lattice_metrics[i]);
|
||||
}
|
||||
}
|
||||
|
||||
int analyse_options(int argc, char *argv[])
|
||||
|
|
Loading…
Reference in New Issue