summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/throughput.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-12 17:45:41 +0000
committerbrian <brian@FreeBSD.org>1998-06-12 17:45:41 +0000
commitbdbb5722c2fa6e260b4dae11f4236bfac44644f0 (patch)
tree4353dd52b5bb6d9f1879537eca5536e87d83e1a0 /usr.sbin/ppp/throughput.c
parent25d7ace07d4d2b433e8958c26b54625f817282a0 (diff)
downloadFreeBSD-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.c6
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
OpenPOWER on IntegriCloud