Active scripts and group count

This commit is contained in:
Christian 2018-04-03 15:41:55 +02:00
parent 87bb73a816
commit 87b6d71ffd
2 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@ waitUntil {sleep 1; !isNil "active_sectors"};
while {true} do {
uiSleep 600;
diag_log format ["[KP LIBERATION] [GROUPCHECK] ----- Groupcheck started at %1 -----", time];
diag_log format ["[KP LIBERATION] [GROUPCHECK] ----- Groupcheck for %1 groups started at %2 -----", count allGroups, time];
diag_log "[KP LIBERATION] [GROUPCHECK] Groups which aren't marked for deletion when empty:";
private _markedgroups = 0;

View File

@ -12,19 +12,21 @@ waitUntil {sleep 1; !isNil "active_sectors"};
while {true} do {
if (isServer) then {
diag_log format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Total units: %3 - Hostile units: %4 - Local units: %5 - Vehicles: %6 - Active Sectors: %7",
diag_log format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Total units: %3 - Hostile units: %4 - Local units: %5 - Vehicles: %6 - Active Sectors: %7 - Active Scripts: %8",
_source,
((round (diag_fps * 100.0)) / 100.0),
count allUnits,
{side group _x == GRLIB_side_enemy} count allUnits,
{local _x} count allUnits,
count vehicles,
count active_sectors];
count active_sectors,
diag_activeScripts];
} else {
private _text = format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Local units: %3",
private _text = format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Local units: %3 - Active Scripts: %4",
_source,
((round (diag_fps * 100.0)) / 100.0),
{local _x} count allUnits];
{local _x} count allUnits,
diag_activeScripts];
_text remoteExec ["diag_log",2];
};
sleep 60;