Fix logic errors in "show grid users online" console command which didn't actually filter out users shown continuously online for more than 5 days
Remove confusion in command output.varregion
parent
fc9f50d940
commit
5f15ee95dc
|
@ -78,14 +78,13 @@ namespace OpenSim.Services.UserAccountService
|
||||||
// onlineCount++;
|
// onlineCount++;
|
||||||
|
|
||||||
int unixLoginTime = int.Parse(gu.Data["Login"]);
|
int unixLoginTime = int.Parse(gu.Data["Login"]);
|
||||||
DateTime loginDateTime = Util.UnixEpoch.AddSeconds(unixLoginTime);
|
|
||||||
|
|
||||||
if ((loginDateTime - now).Days < 5)
|
if ((now - Util.ToDateTime(unixLoginTime)).Days < 5)
|
||||||
onlineRecentlyCount++;
|
onlineRecentlyCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MainConsole.Instance.OutputFormat("Users online within last 5 days: {0}", onlineRecentlyCount);
|
MainConsole.Instance.OutputFormat("Users online: {0}", onlineRecentlyCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual GridUserInfo GetGridUserInfo(string userID)
|
public virtual GridUserInfo GetGridUserInfo(string userID)
|
||||||
|
|
Loading…
Reference in New Issue