MCPcopy Create free account
hub / github.com/cppla/ServerStatus / CStats

Class CStats

server/src/main.h:47–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 int64_t m_AlarmLastTime; //record last alarm time.
46
47 struct CStats
48 {
49 bool m_Online4;
50 bool m_Online6;
51 // bool m_IpStatus, delete ip_status check, Duplicate packet loss rate detection
52 // mh361 or mh370, mourn mh370, 2014-03-08 01:20 lost from all over the world. by:https://cpp.la
53 int64_t m_Uptime;
54 double m_Load_1;
55 double m_Load_5;
56 double m_Load_15;
57 double m_ping_10010;
58 double m_ping_189;
59 double m_ping_10086;
60 int64_t m_time_10010;
61 int64_t m_time_189;
62 int64_t m_time_10086;
63 int64_t m_NetworkRx;
64 int64_t m_NetworkTx;
65 int64_t m_NetworkIN;
66 int64_t m_NetworkOUT;
67 int64_t m_MemTotal;
68 int64_t m_MemUsed;
69 int64_t m_SwapTotal;
70 int64_t m_SwapUsed;
71 int64_t m_HDDTotal;
72 int64_t m_HDDUsed;
73 int64_t m_tcpCount;
74 int64_t m_udpCount;
75 int64_t m_processCount;
76 int64_t m_threadCount;
77 int64_t m_IORead;
78 int64_t m_IOWrite;
79 double m_CPU;
80 char m_aCustom[1024];
81 // OS name reported by client (e.g. linux/windows/darwin/freebsd)
82 char m_aOS[64];
83 // Options
84 bool m_Pong;
85 } m_Stats;
86 } m_aClients[NET_MAX_CLIENTS];
87
88 struct CWatchDog{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected