Change the data in the item general in the reports for to get the value and formated value

This commit is contained in:
mdtrooper 2015-12-28 16:35:51 +01:00
parent 473d96dd6f
commit db78f116f1
2 changed files with 5 additions and 4 deletions

5
pandora_console/include/functions_reporting.php Executable file → Normal file
View File

@ -3981,7 +3981,7 @@ function reporting_general($report, $content) {
if (modules_is_disable_agent($row['id_agent_module']) ||
modules_is_not_init($row['id_agent_module'])) {
if (is_metaconsole()) {
//Restore db connection
metaconsole_restore_db();
@ -4179,7 +4179,8 @@ function reporting_general($report, $content) {
$data['value'] = $d;
}
else {
$data['value'] = format_for_graph($d, 2) . " " .
$data['value'] = $d;
$data['formated_value'] = format_for_graph($d, 2) . " " .
$units[$i];
}
}

4
pandora_console/include/functions_reporting_html.php Executable file → Normal file
View File

@ -1725,13 +1725,13 @@ function reporting_html_general(&$table, $item) {
$row['agent'],
$row['module'],
$row['operator'],
$row['value']);
$row['formated_value']);
}
else {
$table1->data[] = array(
$row['agent'],
$row['module'],
$row['value']);
$row['formated_value']);
}
}
break;