Change the data in the item general in the reports for to get the value and formated value
This commit is contained in:
parent
473d96dd6f
commit
db78f116f1
|
@ -4179,7 +4179,8 @@ function reporting_general($report, $content) {
|
||||||
$data['value'] = $d;
|
$data['value'] = $d;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data['value'] = format_for_graph($d, 2) . " " .
|
$data['value'] = $d;
|
||||||
|
$data['formated_value'] = format_for_graph($d, 2) . " " .
|
||||||
$units[$i];
|
$units[$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1725,13 +1725,13 @@ function reporting_html_general(&$table, $item) {
|
||||||
$row['agent'],
|
$row['agent'],
|
||||||
$row['module'],
|
$row['module'],
|
||||||
$row['operator'],
|
$row['operator'],
|
||||||
$row['value']);
|
$row['formated_value']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$table1->data[] = array(
|
$table1->data[] = array(
|
||||||
$row['agent'],
|
$row['agent'],
|
||||||
$row['module'],
|
$row['module'],
|
||||||
$row['value']);
|
$row['formated_value']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue