Skip to content

Commit 428c68e

Browse files
Add NTP mode to ntp status
1 parent a579b7d commit 428c68e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hc_http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ static const char *hc_http_ntp (const char *method, const char *uri,
258258
}
259259

260260
snprintf (JsonBuffer, sizeof(JsonBuffer),
261-
"{\"ntp\":{\"source\":%s%s%s,\"stratum\":%d",
262-
quote, source, quote, ntp_db->stratum);
261+
"{\"ntp\":{\"source\":%s%s%s,\"mode\":\"%c\",\"stratum\":%d",
262+
quote, source, quote, ntp_db->mode, ntp_db->stratum);
263263

264264
prefix = ",\"clients\":[";
265265
for (i = 0; i < HC_NTP_DEPTH; ++i) {

0 commit comments

Comments
 (0)