From: Johan Kiviniemi Date: Thu, 4 Oct 2012 21:24:19 +0000 (+0300) Subject: src/ntpd.c: Format refclock name and unit ID with %s-%u X-Git-Tag: collectd-5.2.0~45 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae99655fc37d7fea3f4c33f32df1627b54b9ca62;p=collectd.git src/ntpd.c: Format refclock name and unit ID with %s-%u --- diff --git a/src/ntpd.c b/src/ntpd.c index 15e60a5d..3e2b4ea5 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -859,7 +859,7 @@ static int ntpd_read (void) { /* The unit number is in the lowest byte. */ ssnprintf (peername, sizeof (peername), - "%s%i", + "%s-%u", refclock_names[refclock_id], ntohl (ptr->srcadr) & 0xFF); }