refactor events meta pandora_enterprise#9086

This commit is contained in:
Daniel Barbero Martin 2022-06-22 10:11:24 +02:00
parent 4ca78ec00c
commit f39d502108
2 changed files with 7 additions and 3 deletions

View File

@ -2740,7 +2740,11 @@ function events_get_agent(
'te.utimestamp'
);
return $events['data'];
if (is_metaconsole() === true) {
$events = $events['data'];
}
return $events;
}

View File

@ -10454,14 +10454,14 @@ function reporting_get_module_detailed_event(
$event['data'] = [];
}
// total_events
// Total events.
if (isset($event['data'])) {
$event['total_events'] = count($event['data']);
} else {
$event['total_events'] = 0;
}
// graphs
// Graphs.
if (!empty($force_width_chart)) {
$width = $force_width_chart;
}