mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-27 07:59:41 +08:00
traffic counters are changed to 64-bit
traffic counters are changed to 64-bit using pstdint.h
This commit is contained in:
1 parent
467650bbbf
commit
2890f06488
21 files changed
+569
-44
No files matched your search
@@ -126,7 +126,11 @@ int sockfillbuffsrv(struct clientparam * param, unsigned long size, int timeosec
|
||||
if((len = sockrecvfrom(param->remsock, ¶m->sinc, param->srvbuf + param->srvinbuf, (param->srvbufsize - param->srvinbuf) < size? param->srvbufsize - param->srvinbuf:size, timeosec*1000)) > 0){
|
||||
param->srvinbuf += len;
|
||||
param->nreads++;
|
||||
#ifndef NOPSTDINT
|
||||
param->statssrv64 += len;
|
||||
#else
|
||||
param->statssrv += len;
|
||||
#endif
|
||||
}
|
||||
return param->srvinbuf;
|
||||
}
|
||||
@@ -152,7 +156,11 @@ int sockgetcharsrv(struct clientparam * param, int timeosec, int timeousec){
|
||||
param->srvinbuf = len;
|
||||
param->srvoffset = 1;
|
||||
param->nreads++;
|
||||
#ifndef NOPSTDINT
|
||||
param->statssrv64 += len;
|
||||
#else
|
||||
param->statssrv += len;
|
||||
#endif
|
||||
return (int)*param->srvbuf;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user