working again

git-svn-id: svn://elaine/murooma/trunk@68 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-04 22:48:25 +00:00
parent 5c4412562a
commit 224ee53a5a
3 changed files with 70 additions and 14 deletions

View file

@ -181,11 +181,11 @@ int main (int argc, char *argv[])
zmq::message_t update;
subscriber.recv(&update);
timeval now;
gettimeofday(&now, NULL);
std::cerr << "New chunk: " << chunkTime(*chunk) << "\t" << timeToStr(now) << "\t" << getAge(*chunk) << "\n";
// timeval now;
// gettimeofday(&now, NULL);
// memcpy(chunk, update.data(), sizeof(Chunk));
chunk = (Chunk*)(update.data());
// std::cerr << "New chunk: " << chunkTime(*chunk) << "\t" << timeToStr(now) << "\t" << getAge(*chunk) << "\n";
stream->addChunk(chunk);
}
return 0;