Revision 3bbf8272 measures.c

View differences:

measures.c
14 14
*/
15 15
void reg_chunk_duplicate()
16 16
{
17
  static int duplicates = 0;
18

  
19
  duplicates++;
17 20
}
18 21

  
19 22
/*
......
21 24
*/
22 25
void reg_chunk_playout(int id, bool b, uint64_t timestamp)
23 26
{
27
  static int chunks = 0;
28
  static int sum = 0;
29

  
30
  sum += b ? 1 : 0;
31
  chunks++;
24 32
}
25 33

  
26 34
/*
......
35 43
*/
36 44
void reg_chunk_receive(int id, uint64_t timestamp, int hopcount)
37 45
{
46
  static int chunks_received = 0;
47
  static int sum_hopcount = 0;
48

  
49
  chunks_received++;
50
  sum_hopcount += hopcount;
38 51
}
39 52

  
40 53
/*
......
42 55
*/
43 56
void reg_chunk_send(int id)
44 57
{
58
  static int chunks_sent = 0;
59

  
60
  chunks_sent++;
45 61
}
46 62

  
47 63
/*
......
49 65
*/
50 66
void reg_offer_accept(bool b)
51 67
{
68
  static int offers = 0;
69
  static int accepts = 0;
70

  
71
  offers++;
72
  if (b) accepts++;
52 73
}
53 74

  
54 75
/*

Also available in: Unified diff