added commands ran into stats
This commit is contained in:
parent
79ea4e9412
commit
2728aa9edc
@ -138,8 +138,9 @@ namespace NadekoBot {
|
|||||||
$"\nUptime: {GetUptimeString()}" +
|
$"\nUptime: {GetUptimeString()}" +
|
||||||
$"\nServers: {client.Servers.Count()}" +
|
$"\nServers: {client.Servers.Count()}" +
|
||||||
$"\nChannels: {client.Servers.Sum(s => s.AllChannels.Count())}" +
|
$"\nChannels: {client.Servers.Sum(s => s.AllChannels.Count())}" +
|
||||||
$"\nUsers: {client.Servers.SelectMany(x => x.Users.Select(y => y.Id)).Count()} ({client.Servers.SelectMany(x => x.Users.Select(y => y.Id)).Distinct().Count()} unique) ({client.Servers.SelectMany(x => x.Users.Where(y => y.Status != UserStatus.Offline).Select(y => y.Id)).Distinct().Count()} online)\n" +
|
$"\nUsers: {client.Servers.SelectMany(x => x.Users.Select(y => y.Id)).Count()} ({client.Servers.SelectMany(x => x.Users.Select(y => y.Id)).Distinct().Count()} unique) ({client.Servers.SelectMany(x => x.Users.Where(y => y.Status != UserStatus.Offline).Select(y => y.Id)).Distinct().Count()} online)" +
|
||||||
$"\nHeap: {Math.Round(GC.GetTotalMemory(true) / (1024.0 * 1024.0), 2).ToString()}MB";
|
$"\nHeap: {Math.Round(GC.GetTotalMemory(true) / (1024.0 * 1024.0), 2).ToString()}MB" +
|
||||||
|
$"\nCommands Ran this session: {commandsRan}";
|
||||||
|
|
||||||
public static string GetUptimeString() {
|
public static string GetUptimeString() {
|
||||||
var time = (DateTime.Now - Process.GetCurrentProcess().StartTime);
|
var time = (DateTime.Now - Process.GetCurrentProcess().StartTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user