| 820 | } |
| 821 | |
| 822 | static void |
| 823 | print_stats (void) |
| 824 | { |
| 825 | if (status_level == STATUS_NONE) |
| 826 | return; |
| 827 | |
| 828 | if (0 < progress_len) |
| 829 | { |
| 830 | fputc ('\n', stderr); |
| 831 | progress_len = 0; |
| 832 | } |
| 833 | |
| 834 | fprintf (stderr, |
| 835 | _("%jd+%jd records in\n" |
| 836 | "%jd+%jd records out\n"), |
| 837 | r_full, r_partial, w_full, w_partial); |
| 838 | |
| 839 | if (r_truncate != 0) |
| 840 | fprintf (stderr, |
| 841 | ngettext ("%jd truncated record\n", |
| 842 | "%jd truncated records\n", |
| 843 | select_plural (r_truncate)), |
| 844 | r_truncate); |
| 845 | |
| 846 | if (status_level == STATUS_NOXFER) |
| 847 | return; |
| 848 | |
| 849 | print_xfer_stats (0); |
| 850 | } |
| 851 | |
| 852 | /* An ordinary signal was received; arrange for the program to exit. */ |
| 853 |
no test coverage detected