Skip to content

Commit

Permalink
http_server: v2: reload: Use more concrate key for storing reloaded t…
Browse files Browse the repository at this point in the history
…imes

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Sep 6, 2023
1 parent 54b1b12 commit 7bf1ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http_server/api/v2/reload.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ static void handle_get_reload_status(mk_request_t *request, struct flb_config *c
msgpack_packer_init(&mp_pck, &mp_sbuf, msgpack_sbuffer_write);

msgpack_pack_map(&mp_pck, 1);
msgpack_pack_str(&mp_pck, 12);
msgpack_pack_str_body(&mp_pck, "hot_reloaded", 12);
msgpack_pack_str(&mp_pck, 16);
msgpack_pack_str_body(&mp_pck, "hot_reload_count", 16);
msgpack_pack_int64(&mp_pck, config->hot_reloaded_count);

/* Export to JSON */
Expand Down

0 comments on commit 7bf1ff1

Please sign in to comment.