Counting empty instances as well
This commit is contained in:
@@ -520,6 +520,7 @@ bool WebStatistics::handle_message(const std::shared_ptr<license::web::WebStatis
|
||||
auto& history_data = response["history"]["data"];
|
||||
for(index = 0; index < data->record_count; index++) {
|
||||
auto& indexed_data = history_data[index];
|
||||
indexed_data["instances_empty"] = data->history[index].instance_empty;
|
||||
indexed_data["instances"] = data->history[index].instance_online;
|
||||
indexed_data["servers"] = data->history[index].servers_online;
|
||||
indexed_data["clients"] = data->history[index].clients_online;
|
||||
@@ -560,6 +561,7 @@ bool WebStatistics::handle_request(const std::shared_ptr<license::web::WebStatis
|
||||
Json::Value json;
|
||||
json["type"] = "response";
|
||||
auto stats = this->statistics_manager->general_statistics();
|
||||
json["statistics"]["instances_empty"] = to_string(stats->empty_instances);
|
||||
json["statistics"]["instances"] = to_string(stats->instances);
|
||||
json["statistics"]["servers"] = to_string(stats->servers);
|
||||
json["statistics"]["clients"] = to_string(stats->clients);
|
||||
|
||||
Reference in New Issue
Block a user