Counting empty instances as well

This commit is contained in:
WolverinDEV
2020-03-02 20:40:48 +01:00
parent 67becd9496
commit 12d86cbfea
5 changed files with 64 additions and 59 deletions
+1
View File
@@ -148,6 +148,7 @@ std::shared_ptr<GeneralStatistics> StatisticManager::general_statistics() {
stats->bots += entry->bots;
stats->clients += entry->clients;
stats->servers += entry->servers;
stats->empty_instances += entry->clients == 0;
stats->instances++;
}
stats->age = system_clock::now();