stats are now showing upon bot start in console again
This commit is contained in:
parent
e5ad9e2b8f
commit
97ed56af83
@ -108,7 +108,8 @@ namespace NadekoBot {
|
||||
public string Heap(bool pass = true) => Math.Round((double)GC.GetTotalMemory(pass) / 1.MiB(), 2).ToString();
|
||||
|
||||
public async Task<string> GetStats() {
|
||||
if (statsStopwatch.Elapsed.Seconds <= 5) return statsCache;
|
||||
if (statsStopwatch.Elapsed.Seconds < 4 &&
|
||||
!string.IsNullOrWhiteSpace(statsCache)) return statsCache;
|
||||
await LoadStats();
|
||||
statsStopwatch.Restart();
|
||||
return statsCache;
|
||||
|
Loading…
Reference in New Issue
Block a user