Activate HW reporting.
This commit is contained in:
parent
538694c1d1
commit
044972be2a
@ -178,11 +178,9 @@ void reportHardwareStats()
|
||||
if(nr_procs>0)
|
||||
json.add("cpu_numprocs", nr_procs);
|
||||
|
||||
// Too long for debugging atm
|
||||
//json.add("GL_EXTENSIONS", getGLExtensions());
|
||||
json.add("GL_EXTENSIONS", getGLExtensions());
|
||||
getGLLimits(&json);
|
||||
json.finish();
|
||||
Log::verbose("json", "'%s'", json.toString().c_str());
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
/** A small class which sends the HW report to the STK server. On
|
||||
@ -235,8 +233,7 @@ void reportHardwareStats()
|
||||
request->addParameter("data", json.toString());
|
||||
request->setURL((std::string)UserConfigParams::m_server_hw_report+"/upload/v1/");
|
||||
//request->setURL("http://127.0.0.1:8000/upload/v1/");
|
||||
// FIXME: For now: don't submit
|
||||
//request->queue();
|
||||
request->queue();
|
||||
|
||||
} // reportHardwareStats
|
||||
|
||||
|
@ -693,7 +693,7 @@ namespace UserConfigParams
|
||||
"A random number to avoid duplicated reports.") );
|
||||
|
||||
PARAM_PREFIX StringUserConfigParam m_server_hw_report
|
||||
PARAM_DEFAULT( StringUserConfigParam( "http://stats.supertuxkart.net",
|
||||
PARAM_DEFAULT( StringUserConfigParam( "http://104.131.193.44:8080",
|
||||
"hw-report-server",
|
||||
&m_hw_report_group,
|
||||
"The server used for reporting statistics to."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user