X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fuserload.h;h=3891ca8d67b2cb83a2a0f76b3beac64e3e36977e;hb=dc84c4782beab4f9ed5e63f988fc9e4c73141da0;hp=c6dfd18cf9a942ca3b1b59e732550fc6e29c10de;hpb=ae91ef6320f611af74e70a0db2620c338fbaa7d5;p=ircu2.10.12-pk.git diff --git a/include/userload.h b/include/userload.h index c6dfd18..3891ca8 100644 --- a/include/userload.h +++ b/include/userload.h @@ -19,22 +19,26 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id$ + */ +/** @file + * @brief Userload tracking and statistics. + * @version $Id$ */ #ifndef INCLUDED_userload_h #define INCLUDED_userload_h struct Client; +struct StatDesc; /* * Structures */ +/** Tracks load of various types of users. */ struct current_load_st { - unsigned int client_count; - unsigned int local_count; - unsigned int conn_count; + unsigned int client_count; /**< Count of locally connected clients. */ + unsigned int local_count; /**< This field is updated but apparently meaningless. */ + unsigned int conn_count; /**< Locally connected clients plus servers. */ }; /* @@ -42,7 +46,8 @@ struct current_load_st { */ extern void update_load(void); -extern void calc_load(struct Client *sptr); +extern void calc_load(struct Client *sptr, const struct StatDesc *sd, + char *param); extern void initload(void); extern struct current_load_st current_load;