diff --git a/src/traffic.c b/src/traffic.c index 14ce93f..a20c6ce 100644 --- a/src/traffic.c +++ b/src/traffic.c @@ -256,7 +256,6 @@ void livetrafficmeter(const char *iface, const int mode) } if (cfg.ostyle != 4) { printf("%s", buffer); - fflush(stdout); } else { printf("%s\n", buffer); } @@ -283,6 +282,7 @@ void livetrafficmeter(const char *iface, const int mode) printf("}}\n"); index++; } + fflush(stdout); #ifdef CHECK_VNSTAT break; #endif