[jetrix-cvs] SF.net SVN: jetrix:[769] monitor/trunk/src/main/webapp/index.jsp
Brought to you by:
smanux
From: <sm...@us...> - 2008-09-16 03:23:26
|
Revision: 769 http://jetrix.svn.sourceforge.net/jetrix/?rev=769&view=rev Author: smanux Date: 2008-09-16 10:23:20 +0000 (Tue, 16 Sep 2008) Log Message: ----------- Count only the players from the servers that are online Modified Paths: -------------- monitor/trunk/src/main/webapp/index.jsp Modified: monitor/trunk/src/main/webapp/index.jsp =================================================================== --- monitor/trunk/src/main/webapp/index.jsp 2008-09-02 21:41:15 UTC (rev 768) +++ monitor/trunk/src/main/webapp/index.jsp 2008-09-16 10:23:20 UTC (rev 769) @@ -18,9 +18,9 @@ for (ServerInfo server : servers) { if (server.isOnline()) { serverCount++; + totalPlayerCount += server.getStats().getPlayerCount(); } - - totalPlayerCount += server.getStats().getPlayerCount(); + if (lastChecked == null || (server.getLastChecked() != null && server.getLastChecked().after(lastChecked))) { lastChecked = server.getLastChecked(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |