From cfa24d6ccc47252affac3dd3c7c52dee99ff590a Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 9 Oct 2013 12:34:12 +0000 Subject: [PATCH] shorten output; ok henning phessler --- src/usr.sbin/ntpd/ntpd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index f368cda2..4b7df5f9 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.71 2013/10/04 20:30:38 schwarze Exp $ */ +/* $OpenBSD: ntpd.c,v 1.72 2013/10/09 12:34:12 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -677,20 +677,20 @@ show_status_msg(struct imsg *imsg) cstatus = (struct ctl_show_status *)imsg->data; if (cstatus->peercnt > 0) - printf("%d of %d peers valid\n", + printf("%d/%d peers valid, ", cstatus->valid_peers, cstatus->peercnt); if (cstatus->sensorcnt > 0) - printf("%d of %d sensors valid\n", + printf("%d/%d sensors valid, ", cstatus->valid_sensors, cstatus->sensorcnt); if (cstatus->peercnt + cstatus->sensorcnt == 0) printf("no peers and no sensors configured\n"); if (cstatus->synced == 1) - printf("clock is synced, stratum %u\n", cstatus->stratum); + printf("clock synced, stratum %u\n", cstatus->stratum); else { - printf("clock is unsynced"); + printf("clock unsynced"); clock_offset = cstatus->clock_offset < 0 ? -1.0 * cstatus->clock_offset : cstatus->clock_offset; if (clock_offset > 5e-7)