Redocument ServerStats and switch members to use size_t.

This commit is contained in:
Sadie Powell 2024-08-27 14:47:35 +01:00
parent e6ea9f7d4a
commit 56b9a4e48e

View File

@ -105,33 +105,26 @@ CoreExport extern InspIRCd* ServerInstance;
class ServerStats final class ServerStats final
{ {
public: public:
/** Number of accepted connections /** Number of accepted connections. */
*/ size_t Accept = 0;
unsigned long Accept = 0;
/** Number of failed accepts /** Number of rejected connections. */
*/ size_t Refused = 0;
unsigned long Refused = 0;
/** Number of unknown commands seen /** Number of unknown commands seen. */
*/ size_t Unknown = 0;
unsigned long Unknown = 0;
/** Number of nickname collisions handled /** Number of nickname collisions handled. */
*/ size_t Collisions = 0;
unsigned long Collisions = 0;
/** Number of inbound connections seen /** Number of fully connected users seen. */
*/ size_t Connects = 0;
unsigned long Connects = 0;
/** Total bytes of data transmitted /** Total bytes of data transmitted. */
*/ size_t Sent = 0;
unsigned long Sent = 0;
/** Total bytes of data received /** Total bytes of data received. */
*/ size_t Recv = 0;
unsigned long Recv = 0;
#ifdef _WIN32 #ifdef _WIN32
/** Cpu usage at last sample /** Cpu usage at last sample
@ -146,12 +139,10 @@ public:
*/ */
LARGE_INTEGER QPFrequency; LARGE_INTEGER QPFrequency;
#else #else
/** Cpu usage at last sample /** CPU usage at the last sample. */
*/
timeval LastCPU; timeval LastCPU;
/** Time last sample was read /** Time the last sample was read. */
*/
timespec LastSampled; timespec LastSampled;
#endif #endif
}; };