aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty_info.c')
-rw-r--r--sys/kern/tty_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c
index 8894fe7808c5..d2b059ca41b0 100644
--- a/sys/kern/tty_info.c
+++ b/sys/kern/tty_info.c
@@ -230,7 +230,8 @@ tty_info(struct tty *tp)
/* Print load average. */
load = (averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT;
- ttyprintf(tp, "load: %d.%02d ", load / 100, load % 100);
+ ttyprintf(tp, "%sload: %d.%02d ", tp->t_column == 0 ? "" : "\n",
+ load / 100, load % 100);
if (tp->t_session == NULL) {
ttyprintf(tp, "not a controlling terminal\n");