mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
minor code style change
This commit is contained in:
parent
3150df98c6
commit
e885af19f9
@ -6322,7 +6322,15 @@ sub pandora_update_agent_module_count ($$$) {
|
|||||||
}; # Module counts by status.
|
}; # Module counts by status.
|
||||||
|
|
||||||
# Retrieve and hash module status counts.
|
# Retrieve and hash module status counts.
|
||||||
my @rows = get_db_rows ($dbh, 'SELECT estado, COUNT(*) AS total FROM tagente_modulo, tagente_estado WHERE tagente_modulo.disabled=0 AND tagente_modulo.id_modulo<>0 AND tagente_modulo.id_agente_modulo=tagente_estado.id_agente_modulo AND tagente_modulo.id_agente=?GROUP BY estado', $agent_id);
|
my @rows = get_db_rows ($dbh,
|
||||||
|
'SELECT `estado`, COUNT(*) AS total
|
||||||
|
FROM `tagente_modulo`, `tagente_estado`
|
||||||
|
WHERE `tagente_modulo`.`disabled`=0
|
||||||
|
AND `tagente_modulo`.`id_modulo`<>0
|
||||||
|
AND `tagente_modulo`.`id_agente_modulo`=`tagente_estado`.`id_agente_modulo`
|
||||||
|
AND `tagente_modulo`.`id_agente`=? GROUP BY `estado`',
|
||||||
|
$agent_id
|
||||||
|
);
|
||||||
foreach my $row (@rows) {
|
foreach my $row (@rows) {
|
||||||
$counts->{$row->{'estado'}} = $row->{'total'};
|
$counts->{$row->{'estado'}} = $row->{'total'};
|
||||||
$total += $row->{'total'};
|
$total += $row->{'total'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user