Fixed bug not receiving stats properly.

This commit is contained in:
Thulinma 2011-12-04 20:54:38 +01:00
parent 62cd774288
commit 15498f6cdc

View file

@ -254,8 +254,7 @@ namespace Buffer{
StatsSocket = Socket::Connection("/tmp/ddv_statistics", true); StatsSocket = Socket::Connection("/tmp/ddv_statistics", true);
} }
if (StatsSocket.connected()){ if (StatsSocket.connected()){
StatsSocket.write(Storage.toStyledString()); StatsSocket.write(Storage.toStyledString()+"\n\n");
std::cout << "Wrote stats to controller!" << std::endl;
Storage["log"].clear(); Storage["log"].clear();
} }
} }