Revision 32c9a7bc stats.h

View differences:

stats.h
1
#ifndef __STATS_H__
2
#define __STATS_H__ 1
3

  
4
#define PLAIN_STATS 0
5
#define CSV_STATS 1
6

  
7
struct stats {
8
	double elapsed_time;
9
	double avg_delay;
10
	double avg_max_delay;
11
	double max_delay;
12
	double loss;
13
	int last_non_active;
14
};
15

  
1 16
int status_print(FILE *f, struct peer *p, int n, struct chunk * chunks, int c, int t);
2
int per_chunk_delay_analysis(FILE *stream, struct chunk *chunks, int num_chunks, int num_peers);
17

  
18
int per_chunk_delay_analysis(FILE *stream, const struct chunk *chunks, int num_chunks, int num_peers);
19

  
3 20
void per_node_delay_analysis(FILE *stream, struct chunk *chunks, int num_chunks);
21

  
22
int chunk_stats_converge(struct stats** s, const struct chunk *chunks, int num_chunks, const struct peer * peers, int num_peers, double elapsed_time);
23

  
24
void chunk_stats_print(const struct stats *s, int type);
25

  
26
#endif

Also available in: Unified diff