Revision d72492e1 src/Chunkiser/output-stream-dummy.c

View differences:

src/Chunkiser/output-stream-dummy.c
20 20
struct dechunkiser_ctx {
21 21
  enum output_type type;
22 22
  int last_id;
23
  int lost;
24
  int first_id;
23 25
};
24 26

  
25 27
static struct dechunkiser_ctx *dummy_open(const char *fname, const char *config)
......
60 62
        int i;
61 63

  
62 64
        for (i = 1; i < id - o->last_id; i++) {
65
          o->lost++;
63 66
          printf("Lost chunk %d\n", o->last_id + i);
64 67
        }
68
        printf("# Lost chunk ratio: %f\n", (double)o->lost / (double)(id - o->first_id));
69
      } else {
70
        o->first_id = id;
65 71
      }
66 72
      break;
67 73
    default:

Also available in: Unified diff