mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2010-05-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: changed the style to show data in the items "TTRT", "TTO", "MTBF" and "MTTR". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2663 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1d8700d4f2
commit
74c4617983
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_reporting.php: changed the style to show data in the
|
||||||
|
items "TTRT", "TTO", "MTBF" and "MTTR".
|
||||||
|
|
||||||
2010-05-04 Miguel de Dios <miguel.dedios@artica.es>
|
2010-05-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: fixed in the function
|
* include/functions_reporting.php: fixed in the function
|
||||||
|
@ -2072,7 +2072,10 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
|
|||||||
$table->colspan[2][0] = 3;
|
$table->colspan[2][0] = 3;
|
||||||
$ttr = get_agentmodule_ttr ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
$ttr = get_agentmodule_ttr ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
||||||
if ($ttr != 0) $ttr = human_time_description_raw ($ttr);
|
if ($ttr != 0) $ttr = human_time_description_raw ($ttr);
|
||||||
$data[0] = $ttr;
|
|
||||||
|
$data = array ();
|
||||||
|
$table->colspan[2][0] = 3;
|
||||||
|
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">'.$ttr.'</p>';
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
break;
|
break;
|
||||||
case 'TTO':
|
case 'TTO':
|
||||||
@ -2093,7 +2096,10 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
|
|||||||
$table->colspan[2][0] = 3;
|
$table->colspan[2][0] = 3;
|
||||||
$tto = get_agentmodule_tto ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
$tto = get_agentmodule_tto ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
||||||
if ($tto != 0) $tto = human_time_description_raw ($tto);
|
if ($tto != 0) $tto = human_time_description_raw ($tto);
|
||||||
$data[0] = $tto;
|
|
||||||
|
$data = array ();
|
||||||
|
$table->colspan[2][0] = 3;
|
||||||
|
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">'.$tto.'</p>';
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
break;
|
break;
|
||||||
case 'MTBF':
|
case 'MTBF':
|
||||||
@ -2114,7 +2120,10 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
|
|||||||
$table->colspan[2][0] = 3;
|
$table->colspan[2][0] = 3;
|
||||||
$mtbf = get_agentmodule_mtbf ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
$mtbf = get_agentmodule_mtbf ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
||||||
if ($mtbf != 0) $mtbf = human_time_description_raw ($mtbf);
|
if ($mtbf != 0) $mtbf = human_time_description_raw ($mtbf);
|
||||||
$data[0] = $mtbf;
|
|
||||||
|
$data = array ();
|
||||||
|
$table->colspan[2][0] = 3;
|
||||||
|
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">'.$mtbf.'</p>';
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
break;
|
break;
|
||||||
case 'MTTR':
|
case 'MTTR':
|
||||||
@ -2135,7 +2144,10 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
|
|||||||
$table->colspan[2][0] = 3;
|
$table->colspan[2][0] = 3;
|
||||||
$mttr = get_agentmodule_mttr ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
$mttr = get_agentmodule_mttr ($content['id_agent_module'], $content['period'], $report["datetime"]);
|
||||||
if ($mttr != 0) $mttr = human_time_description_raw ($mttr);
|
if ($mttr != 0) $mttr = human_time_description_raw ($mttr);
|
||||||
$data[0] = $mttr;
|
|
||||||
|
$data = array ();
|
||||||
|
$table->colspan[2][0] = 3;
|
||||||
|
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">'.$mttr.'</p>';
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user