Only print statistics in verbose mode

This commit is contained in:
Paul Traina 1996-02-03 06:33:23 +00:00
parent 0b2207bcb3
commit 38751bfcd6

View File

@ -904,11 +904,12 @@ finish(sig)
ntransmitted++;
advertise(&whereto);
}
logtrace("\n----%s rdisc Statistics----\n", sendaddress );
logtrace("%d packets transmitted, ", ntransmitted );
logtrace("%d packets received, ", nreceived );
logtrace("\n");
(void) fflush(stdout);
if (verbose) {
logtrace("\n----%s rdisc Statistics----\n", sendaddress );
logtrace("%d packets transmitted, ", ntransmitted );
logtrace("%d packets received, ", nreceived );
(void) fflush(stdout);
}
exit(0);
}