From 65c5efe43b68700bad94076d4cd421160203c5de Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Fri, 16 May 2008 01:22:11 +0000 Subject: Formatting cleanup. --- OpenSim/Framework/Statistics/UserStatsCollector.cs | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Framework/Statistics/UserStatsCollector.cs') diff --git a/OpenSim/Framework/Statistics/UserStatsCollector.cs b/OpenSim/Framework/Statistics/UserStatsCollector.cs index f0f0417..c7fe7c2 100644 --- a/OpenSim/Framework/Statistics/UserStatsCollector.cs +++ b/OpenSim/Framework/Statistics/UserStatsCollector.cs @@ -35,43 +35,43 @@ namespace OpenSim.Framework.Statistics public class UserStatsCollector : IStatsCollector { private Timer ageStatsTimer = new Timer(24 * 60 * 60 * 1000); - + private int successfulLoginsToday; public int SuccessfulLoginsToday { get { return successfulLoginsToday; } } - + private int successfulLoginsYesterday; - public int SuccessfulLoginsYesterday { get { return successfulLoginsYesterday; } } - + public int SuccessfulLoginsYesterday { get { return successfulLoginsYesterday; } } + private int successfulLogins; public int SuccessfulLogins { get { return successfulLogins; } } - + private int logouts; public int Logouts { get { return logouts; } } - + public UserStatsCollector() { ageStatsTimer.Elapsed += new ElapsedEventHandler(OnAgeing); ageStatsTimer.Enabled = true; } - + private void OnAgeing(object source, ElapsedEventArgs e) { successfulLoginsYesterday = successfulLoginsToday; - + // There is a possibility that an asset request could occur between the execution of these // two statements. But we're better off without the synchronization overhead. - successfulLoginsToday = 0; + successfulLoginsToday = 0; } - + /// /// Record a successful login /// public void AddSuccessfulLogin() { - successfulLogins++; + successfulLogins++; successfulLoginsToday++; } - + public void AddLogout() { logouts++; -- cgit v1.1