Skip to content

Commit

Permalink
sosreport: include Mem_Buf_Limit value if set
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 26, 2017
1 parent a455d07 commit e709704
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/flb_sosreport.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <fluent-bit/flb_filter.h>
#include <fluent-bit/flb_router.h>
#include <fluent-bit/flb_version.h>
#include <fluent-bit/flb_utils.h>

#include <unistd.h>
#include <sys/utsname.h>
Expand Down Expand Up @@ -109,6 +110,7 @@ static void print_properties(struct mk_list *props)

int flb_sosreport(struct flb_config *config)
{
char tmp[32];
struct mk_list *head;
struct mk_list *head_r;
struct flb_input_plugin *in;
Expand Down Expand Up @@ -200,6 +202,13 @@ int flb_sosreport(struct flb_config *config)
if (ins_in->flags & FLB_INPUT_NET) {
print_host(&ins_in->host);
}

if (ins_in->mp_buf_limit > 0) {
flb_utils_bytes_to_human_readable_size(ins_in->mp_buf_limit,
tmp, sizeof(tmp) - 1);
printf(" Mem_Buf_Limit\t%s\n", tmp);
}

print_properties(&ins_in->properties);

/* Fixed Routes */
Expand Down

0 comments on commit e709704

Please sign in to comment.