mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- bump stats version string, send stats to new stats script instead
This commit is contained in:
parent
def0ea0103
commit
4ad769572f
1 changed files with 3 additions and 3 deletions
|
@ -35,8 +35,8 @@ CVAR(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFI
|
||||||
CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
||||||
|
|
||||||
// Each machine will only send two reports, one when started with hardware rendering and one when started with software rendering.
|
// Each machine will only send two reports, one when started with hardware rendering and one when started with software rendering.
|
||||||
#define CHECKVERSION 330
|
#define CHECKVERSION 331
|
||||||
#define CHECKVERSIONSTR "330"
|
#define CHECKVERSIONSTR "331"
|
||||||
CVAR(Int, sentstats_swr_done, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
CVAR(Int, sentstats_swr_done, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
||||||
CVAR(Int, sentstats_hwr_done, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
CVAR(Int, sentstats_hwr_done, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ void D_DoAnonStats()
|
||||||
if (currentrenderer == 1 && sentstats_hwr_done >= CHECKVERSION) return;
|
if (currentrenderer == 1 && sentstats_hwr_done >= CHECKVERSION) return;
|
||||||
|
|
||||||
static char requeststring[1024];
|
static char requeststring[1024];
|
||||||
mysnprintf(requeststring, sizeof requeststring, "GET /stats.php?render=%i&cores=%i&os=%i&renderconfig=%i HTTP/1.1\nHost: %s\nConnection: close\nUser-Agent: %s %s\n\n",
|
mysnprintf(requeststring, sizeof requeststring, "GET /stats.py?render=%i&cores=%i&os=%i&renderconfig=%i HTTP/1.1\nHost: %s\nConnection: close\nUser-Agent: %s %s\n\n",
|
||||||
GetRenderInfo(), GetCoreInfo(), GetOSVersion(), currentrenderer, sys_statshost.GetHumanString(), GAMENAME, VERSIONSTR);
|
GetRenderInfo(), GetCoreInfo(), GetOSVersion(), currentrenderer, sys_statshost.GetHumanString(), GAMENAME, VERSIONSTR);
|
||||||
DPrintf(DMSG_NOTIFY, "Sending %s", requeststring);
|
DPrintf(DMSG_NOTIFY, "Sending %s", requeststring);
|
||||||
std::thread t1(D_DoHTTPRequest, requeststring);
|
std::thread t1(D_DoHTTPRequest, requeststring);
|
||||||
|
|
Loading…
Reference in a new issue