From: Rudolf Polzer Date: Wed, 15 Dec 2010 15:16:52 +0000 (+0100) Subject: add more stats directives: "S" = server hostname, "C" = cvar pure changes count ... X-Git-Tag: xonotic-v0.1.0preview~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a047eb80be5d7a8488ff759f9e51f95ad166e99;p=xonotic%2Fxonotic-data.pk3dir.git add more stats directives: "S" = server hostname, "C" = cvar pure changes count (0 on pure server) --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 47e1a7ecd..7904e30ef 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -85,6 +85,7 @@ void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data) playerstats_waitforme = TRUE; } +//#NO AUTOCVARS START void PlayerStats_Shutdown() { string p, pn; @@ -109,6 +110,8 @@ void PlayerStats_Shutdown() bufstr_set(b, i++, sprintf("T %s.%06d", strftime(FALSE, "%s"), floor(random() * 1000000))); bufstr_set(b, i++, sprintf("G %s", GetGametype())); bufstr_set(b, i++, sprintf("M %s", GetMapname())); + bufstr_set(b, i++, sprintf("S %s", cvar_string("hostname"))); + bufstr_set(b, i++, sprintf("C %d", cvar_purechanges_count)); for(p = playerstats_last; (pn = db_get(playerstats_db, sprintf("%s:*", p))) != ""; p = pn) { bufstr_set(b, i++, sprintf("P %s", p)); @@ -137,6 +140,7 @@ void PlayerStats_Shutdown() db_close(playerstats_db); playerstats_db = -1; } +//#NO AUTOCVARS END void PlayerStats_AddGlobalInfo(entity p) {