ChunkTemplate

git-svn-id: svn://elaine/murooma/trunk@45 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-06-29 16:04:46 +00:00
parent 7ef8fd3f4a
commit 8699eb8bc2
3 changed files with 27 additions and 19 deletions

View file

@ -42,7 +42,7 @@ int main () {
{
// read(fd, &msg[0], size);
chunk.payload[idx++] = c;
if (idx == CHUNK_SIZE)
if (idx == WIRE_CHUNK_SIZE)
{
timeval now;
gettimeofday(&now, NULL);
@ -62,7 +62,7 @@ int main () {
// snprintf ((char *) message.data(), size, "%05d %d", zipcode, c);
// message.data()[0] = c;
publisher.send(message);
addMs(ts, CHUNK_MS);
addMs(ts, WIRE_CHUNK_MS);
idx = 0;
// msg[0] = '0';
}