Sort full stats with connected_time
So newest connection come first in sql viewer
This commit is contained in:
parent
480ce07ae0
commit
b3bbe934d4
@ -272,7 +272,7 @@ void ServerLobby::initServerStatsTable()
|
|||||||
<< " port, online_id, username, player_num, country_code, version,\n"
|
<< " port, online_id, username, player_num, country_code, version,\n"
|
||||||
<< " ROUND((STRFTIME(\"%s\", disconnected_time) - STRFTIME(\"%s\", connected_time)) / 60.0, 2) AS time_played,\n"
|
<< " ROUND((STRFTIME(\"%s\", disconnected_time) - STRFTIME(\"%s\", connected_time)) / 60.0, 2) AS time_played,\n"
|
||||||
<< " connected_time, disconnected_time, ping\n"
|
<< " connected_time, disconnected_time, ping\n"
|
||||||
<< " FROM " << m_server_stats_table << ";";
|
<< " FROM " << m_server_stats_table << " ORDER BY connected_time DESC;";
|
||||||
query = oss.str();
|
query = oss.str();
|
||||||
easySQLQuery(query);
|
easySQLQuery(query);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user