We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c0215 commit 0548505Copy full SHA for 0548505
src/http_server/api/v1/health.c
@@ -319,6 +319,7 @@ static int check_throughput_health(uint64_t in_records,
319
struct flb_hs_throughput_sample *prev;
320
struct flb_hs_throughput_sample *sample;
321
struct flb_hs_throughput_sample *last_sample = NULL;
322
+ int count;
323
bool healthy;
324
bool rv;
325
@@ -383,13 +384,14 @@ static int check_throughput_health(uint64_t in_records,
383
384
}
385
386
- int count = 0;
387
+ count = 0;
388
mk_list_foreach_safe_r(head, tmp, sample_list) {
389
entry = mk_list_entry(head, struct flb_hs_throughput_sample, _head);
390
if (count == sample_count) {
391
mk_list_del(&entry->_head);
392
flb_free(entry);
- } else {
393
+ }
394
+ else {
395
count++;
396
397
0 commit comments