Skip to content

Commit

Permalink
Fix forgotten header
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Nov 26, 2020
1 parent 225f877 commit 8705a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions houselog.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ void houselog_event (const char *category,
static int houselog_getheader (time_t now, char *buffer, int size) {

return snprintf (buffer, size,
"{\"%s\":{\"timestamp\":%ld,\"host\":\"%s\",\"latest\":%ld",
LogName, (long)now, LocalHost, HistoryLatestId);
"{\"host\":\"%s\",\"timestamp\":%ld,\"%s\":{\"latest\":%ld",
LocalHost, (long)now, LogName, HistoryLatestId);
}

static const char *houselog_get (struct tm *local, const char *id) {
Expand Down

0 comments on commit 8705a09

Please sign in to comment.