mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed the size of the charts for SLA when it is showed in a dashboard. TICKET: #2173
This commit is contained in:
parent
e1e64b1a54
commit
812737c2a7
@ -3648,6 +3648,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||||||
$sizem = '1.5';
|
$sizem = '1.5';
|
||||||
$sizgraph_w = '450';
|
$sizgraph_w = '450';
|
||||||
$sizgraph_h = '100';
|
$sizgraph_h = '100';
|
||||||
|
|
||||||
|
$sla_width = '250';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$sizem = '3';
|
$sizem = '3';
|
||||||
@ -4508,9 +4510,21 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||||||
$dataslice[0] .= "<br>";
|
$dataslice[0] .= "<br>";
|
||||||
$dataslice[0] .= modules_get_agentmodule_name ($sla['id_agent_module']);
|
$dataslice[0] .= modules_get_agentmodule_name ($sla['id_agent_module']);
|
||||||
|
|
||||||
$dataslice[1] = graph_sla_slicebar ($sla['id_agent_module'], $content['period'],
|
$dataslice[1] = graph_sla_slicebar (
|
||||||
$sla['sla_min'], $sla['sla_max'], $report['datetime'], $content, $content['time_from'],
|
$sla['id_agent_module'],
|
||||||
$content['time_to'], 650, 25, $urlImage, 1, false, false);
|
$content['period'],
|
||||||
|
$sla['sla_min'],
|
||||||
|
$sla['sla_max'],
|
||||||
|
$report['datetime'],
|
||||||
|
$content,
|
||||||
|
$content['time_from'],
|
||||||
|
$content['time_to'],
|
||||||
|
$sla_width,
|
||||||
|
25,
|
||||||
|
$urlImage,
|
||||||
|
1,
|
||||||
|
false,
|
||||||
|
false);
|
||||||
|
|
||||||
array_push ($tableslice->data, $dataslice);
|
array_push ($tableslice->data, $dataslice);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user