summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2023-07-23 01:39:08 +0300
committerGitHub <noreply@github.com>2023-07-23 01:39:08 +0300
commitb7d0773e947bc7405f119a85e03ec64b0e9d9696 (patch)
tree0be739e7c174e7fbd0e0e79f4886736c824cce41 /collectors
parent843fa238563177f3ba9ee5a7a658517848bc481a (diff)
freeipmi flush keepalive msgs (#15499)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/freeipmi.plugin/freeipmi_plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c
index bfd867cc90..00cf8dc6e1 100644
--- a/collectors/freeipmi.plugin/freeipmi_plugin.c
+++ b/collectors/freeipmi.plugin/freeipmi_plugin.c
@@ -1799,8 +1799,10 @@ int main (int argc, char **argv) {
for(iteration = 0; 1 ; iteration++) {
usec_t dt = heartbeat_next(&hb, step);
- if(!tty)
+ if (!tty) {
fprintf(stdout, "\n"); // keepalive to avoid parser read timeout (2 minutes) during ipmi_detect_speed_secs()
+ fflush(stdout);
+ }
struct netdata_ipmi_state state = {0 };