Flush status output before going to work

This commit is contained in:
Marko Zivanovic
2015-09-07 16:48:53 +02:00
parent 758326bebd
commit 208f01dfcb
+1 -1
View File
@@ -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) {