Added two decimals to resume data in group view. Ticket#3095

This commit is contained in:
Arturo Gonzalez 2015-12-24 11:03:07 +01:00
parent da77468f9b
commit 89a4dba3a2
1 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,10 @@ $monitor_unknown = $all_data["_monitors_unknown_"];
$total = $monitor_ok + $monitor_warning + $monitor_critical + $monitor_unknown;
$total_ok = format_numeric (($monitor_ok*100)/$total,0);
$total_warning = format_numeric (($monitor_warning*100)/$total,0);
$total_critical = format_numeric (($monitor_critical*100)/$total,0);
$total_unknown = format_numeric (($monitor_unknown*100)/$total,0);
$total_ok = format_numeric (($monitor_ok*100)/$total,2);
$total_warning = format_numeric (($monitor_warning*100)/$total,2);
$total_critical = format_numeric (($monitor_critical*100)/$total,2);
$total_unknown = format_numeric (($monitor_unknown*100)/$total,2);
echo '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="databox">';
echo "<tr>";