Skip to content

Commit

Permalink
Add NTP mode to ntp status
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Dec 9, 2019
1 parent a579b7d commit 428c68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hc_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ static const char *hc_http_ntp (const char *method, const char *uri,
}

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

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

0 comments on commit 428c68e

Please sign in to comment.