Revision d3a242ab

View differences:

streaming.c
24 24
static struct chunk_buffer *cb;
25 25
static struct input_desc *input;
26 26

  
27
void cb_print()
28
{
29
  struct chunk *chunks;
30
  int num_chunks, i, id;
31
  chunks = cb_get_chunks(cb, &num_chunks);
32

  
33
  dprintf("\tchbuf :");
34
  i = 0;
35
  if(num_chunks) {
36
    id = chunks[0].id;
37
    dprintf(" %d-> ",id);
38
    while (i < num_chunks) {
39
      if (id == chunks[i].id) {
40
        dprintf("%d",id % 10);
41
        i++;
42
      } else {
43
        dprintf(".");
44
      }
45
      id++;
46
    }
47
  }
48
  dprintf("\n");
49
}
50

  
27 51
void stream_init(int size, struct nodeID *myID)
28 52
{
29 53
  char conf[32];

Also available in: Unified diff