Commit bf85f180 authored by Florian Kaltenberger's avatar Florian Kaltenberger

nr_pbchsim will exit when error rate <0.01

parent 3d845a37
...@@ -571,7 +571,7 @@ int main(int argc, char **argv) ...@@ -571,7 +571,7 @@ int main(int argc, char **argv)
printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR,n_errors,n_trials); printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR,n_errors,n_trials);
if (n_trials==1) if (n_trials==1 || ((float)n_errors/(float)n_trials < 0.01))
break; break;
} // NSR } // NSR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment