]> jfr.im git - solanum.git/blobdiff - include/s_stats.h
Reverting some changed related not to moving on libratbox3 but using ratbox3 source!
[solanum.git] / include / s_stats.h
index 0ed1634d1a5fb7f964d9a8ecdc72b774479a152a..562e77c6ca87d0c672d3f6b9cb59409dbb1c924d 100644 (file)
@@ -47,15 +47,15 @@ struct ServerStatistics
        unsigned int is_cl;     /* number of client connections */
        unsigned int is_sv;     /* number of server connections */
        unsigned int is_ni;     /* connection but no idea who it was */
-       unsigned long long int is_cbs;  /* bytes sent to clients */\r
-       unsigned long long int is_cbr;  /* bytes received to clients */\r
-       unsigned long long int is_sbs;  /* bytes sent to servers */\r
-       unsigned long long int is_sbr;  /* bytes received to servers */
+       unsigned short is_cbs;  /* bytes sent to clients */
+       unsigned short is_cbr;  /* bytes received to clients */
+       unsigned short is_sbs;  /* bytes sent to servers */
+       unsigned short is_sbr;  /* bytes received to servers */
        unsigned long is_cks;   /* k-bytes sent to clients */
        unsigned long is_ckr;   /* k-bytes received to clients */
        unsigned long is_sks;   /* k-bytes sent to servers */
        unsigned long is_skr;   /* k-bytes received to servers */
-       time_t is_cti;          /* time spent connected by clients */\r
+       time_t is_cti;          /* time spent connected by clients */
        time_t is_sti;          /* time spent connected by servers */
        unsigned int is_ac;     /* connections accepted */
        unsigned int is_ref;    /* accepts refused */
@@ -74,7 +74,10 @@ struct ServerStatistics
        unsigned int is_tgch;   /* messages blocked due to target change */
 };
 
-extern struct ServerStatistics ServerStats;
+extern struct ServerStatistics *ServerStats;
+
+extern void init_stats(void);
+extern void tstats(struct Client *client);
 
 extern void count_memory(struct Client *);