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);
}
if (StatsSocket.connected()){
StatsSocket.write(Storage.toStyledString());
std::cout << "Wrote stats to controller!" << std::endl;
StatsSocket.write(Storage.toStyledString()+"\n\n");
Storage["log"].clear();
}
}