Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 3c0d461a1e0431b77d119f4900d3ffd4 > files > 19

apachetop-debug-0.12.6-7mdv2011.0.i586.rpm

#ifndef _HITS_CIRCLE_H_
#define _HITS_CIRCLE_H_

class Hits_Circle : public Circle
{
public:
	int create(unsigned int passed_size);
	int insert(struct logbits lb);
	int walk(struct logbits **lb);

	void updatestats(void) {}
	time_t oldest(void);

	double getreqcount(void) { return reqcount; }
	double getbytecount(void) { return bytecount; }
	double getsummary(int r_c) { return rc_summary[r_c]; }

private:
	int resize(int newsize);

	double reqcount, bytecount;
	double rc_summary[6];

	typedef struct logbits circle_struct;
	circle_struct *tab;
	int size; /* total size of circle table */
	int pos; /* where are we now? */

	int walkpos;
};

#endif