Commit 7a344979 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum stat_type): Added STAT_CONFS and STAT_PERSONS.

(read_stat_value): New function.
parent 420c796f
......@@ -26,13 +26,16 @@
* stats.h -- Handle statistical information, such as load averages.
*/
enum stat_type {
enum stat_type
{
STAT_RUN_QUEUE,
STAT_DNS_QUEUE,
STAT_IDENT_QUEUE,
STAT_CLIENTS,
STAT_REQUESTS,
STAT_TEXTS,
STAT_CONFS, /* Including letterboxes! */
STAT_PERSONS,
STAT_SEND_QUEUE,
STAT_RECV_QUEUE,
......@@ -42,3 +45,4 @@ enum stat_type {
extern void init_stats(void);
extern void update_stat(enum stat_type st, long delta);
extern int check_all_stats(const char *when);
extern long read_stat_value(enum stat_type st);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment