#10194 control empty value in license graph

This commit is contained in:
Daniel Cebrian 2023-10-10 16:27:50 +02:00
parent e3e7328a01
commit 4562998352
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ class Overview extends Element
if ($total > 0 && is_array($enabled_agents) === true) {
$total_disabled_agents = round((($total - count($enabled_agents)) * 100) / $total);
$total_enabled_agents = round((count($enabled_agents) * 100) / $total);
} else {
$total_disabled_agents = 0;
$total_enabled_agents = 100;
}
$data = [