From 208f01dfcb50f0f53b675153dcff903bc24633f1 Mon Sep 17 00:00:00 2001 From: Marko Zivanovic Date: Mon, 7 Sep 2015 16:48:53 +0200 Subject: [PATCH] Flush status output before going to work --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 419c1af..cc8ac43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -114,7 +114,7 @@ int main(int argc, char** argv) { FileReader r(file); SyslogBulkUploader uploader(r, w, mps); cout << "Sending logs from " << file << " to udp://" << dest << ":" << port << " at a max rate of " << - mps << " messages per second ... "; + mps << " messages per second ... " << flush; uploader.run(); cout << "done" << endl; } catch (string& ex) {