Activate HW reporting.

This commit is contained in:
hiker 2014-09-24 10:58:34 +10:00
parent 538694c1d1
commit 044972be2a
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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."));