diff options
author | brian <brian@FreeBSD.org> | 1998-06-12 17:45:41 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-12 17:45:41 +0000 |
commit | bdbb5722c2fa6e260b4dae11f4236bfac44644f0 (patch) | |
tree | 4353dd52b5bb6d9f1879537eca5536e87d83e1a0 /usr.sbin/ppp/throughput.c | |
parent | 25d7ace07d4d2b433e8958c26b54625f817282a0 (diff) | |
download | FreeBSD-src-bdbb5722c2fa6e260b4dae11f4236bfac44644f0.zip FreeBSD-src-bdbb5722c2fa6e260b4dae11f4236bfac44644f0.tar.gz |
Remove '\n' from `show throughput'. ctime() already does
a linefeed.
Diffstat (limited to 'usr.sbin/ppp/throughput.c')
-rw-r--r-- | usr.sbin/ppp/throughput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/throughput.c b/usr.sbin/ppp/throughput.c index 0f1af29..c1bc81b 100644 --- a/usr.sbin/ppp/throughput.c +++ b/usr.sbin/ppp/throughput.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: throughput.c,v 1.5 1998/05/21 21:48:41 brian Exp $ + * $Id: throughput.c,v 1.6 1998/06/09 18:49:08 brian Exp $ */ #include <sys/types.h> @@ -71,7 +71,7 @@ throughput_disp(struct pppThroughput *t, struct prompt *prompt) prompt_Printf(prompt, " overall %5ld bytes/sec\n", (t->OctetsIn+t->OctetsOut)/secs_up); prompt_Printf(prompt, " currently %5d bytes/sec\n", t->OctetsPerSecond); - prompt_Printf(prompt, " peak %5d bytes/sec on %s\n", + prompt_Printf(prompt, " peak %5d bytes/sec on %s", t->BestOctetsPerSecond, ctime(&t->BestOctetsPerSecondTime)); } else prompt_Printf(prompt, "Overall %ld bytes/sec\n", @@ -95,7 +95,7 @@ throughput_log(struct pppThroughput *t, int level, const char *title) if (secs_up == 0) secs_up = 1; if (t->rolling) - log_Printf(level, " total %ld bytes/sec, peak %d bytes/sec on %s\n", + log_Printf(level, " total %ld bytes/sec, peak %d bytes/sec on %s", (t->OctetsIn+t->OctetsOut)/secs_up, t->BestOctetsPerSecond, ctime(&t->BestOctetsPerSecondTime)); else |