Skip to content

Commit

Permalink
Remove redundant data
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Feb 19, 2020
1 parent e424209 commit 4eff37b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hc_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,10 @@ static const char *hc_http_ntp (const char *method, const char *uri,
+ ((client->origin.tv_usec - client->local.tv_usec) / 1000);
snprintf (buffer, sizeof(buffer),
"%s{\"address\":\"%s\",\"timestamp\":%d.%03d,"
"\"remote\":%d.%03d,"
"\"delta\":%d}",
prefix,
hc_broadcast_format(&(client->address)),
client->local.tv_sec, client->local.tv_usec / 1000,
client->origin.tv_sec, client->origin.tv_usec / 1000,
delta);
client->local.tv_sec, client->local.tv_usec / 1000, delta);
strcat (JsonBuffer, buffer);
prefix = ",";
}
Expand Down

0 comments on commit 4eff37b

Please sign in to comment.