mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Change the data in the item general in the reports for to get the value and formated value
(cherry picked from commit db78f116f1e5f3a1c6a62bc26442ce9c31d61445)
This commit is contained in:
parent
bd9180338b
commit
010935b002
3
pandora_console/include/functions_reporting.php
Executable file → Normal file
3
pandora_console/include/functions_reporting.php
Executable file → Normal file
@ -4180,7 +4180,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
4
pandora_console/include/functions_reporting_html.php
Executable file → Normal file
@ -1727,13 +1727,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user