MCPcopy Create free account
hub / github.com/3proxy/3proxy / clearstat

Function clearstat

src/common.c:330–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void clearstat(struct clientparam * param) {
331
332#ifdef _WIN32
333 struct timeb tb;
334
335 ftime(&tb);
336 param->time_start = (time_t)tb.time;
337 param->msec_start = (unsigned)tb.millitm;
338
339#else
340 struct timeval tv;
341 struct timezone tz;
342 gettimeofday(&tv, &tz);
343
344 param->time_start = (time_t)tv.tv_sec;
345 param->msec_start = (tv.tv_usec / 1000);
346#endif
347 param->statscli64 = param->statssrv64 = param->nreads = param->nwrites =
348 param->nconnects = 0;
349}
350
351
352char months[12][4] = {

Callers 3

proxymain.cFile · 0.85
dobufFunction · 0.85
lognoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected