flush_help small change

This commit is contained in:
gabime
2014-03-28 16:13:41 +03:00
parent f909caf38b
commit 88ff314416
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ public:
_flush_every(flush_every),
_write_counter(0) {};
void write(std::ofstream& ofs, const bufpair_t& msg)
void write(const bufpair_t& msg, std::ofstream& ofs)
{
ofs.write(msg.first, msg.second);
if(++_write_counter == _flush_every)