mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Reduce numeric precision in gateways widget to single decimal place (Feature #6841)
This commit is contained in:
parent
a317691294
commit
fdacd72b88
@ -342,8 +342,8 @@ function compose_table_body_contents() {
|
||||
$bgcolor = "info"; // lightblue
|
||||
}
|
||||
|
||||
$rtnstr .= "<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['delay']) : gettext("Pending")) . "</td>\n";
|
||||
$rtnstr .= "<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['stddev']) : gettext("Pending")) . "</td>\n";
|
||||
$rtnstr .= "<td>" . ($gateways_status[$gname] ? ($gateways_status[$gname]['delay'] ? htmlspecialchars(number_format((float)rtrim($gateways_status[$gname]['delay'], "ms"), 1)) . "ms" : '') : gettext("Pending")) . "</td>\n";
|
||||
$rtnstr .= "<td>" . ($gateways_status[$gname] ? ($gateways_status[$gname]['stddev'] ? htmlspecialchars(number_format((float)rtrim($gateways_status[$gname]['stddev'], "ms"), 1)) . "ms" : '') : gettext("Pending")) . "</td>\n";
|
||||
$rtnstr .= "<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['loss']) : gettext("Pending")) . "</td>\n";
|
||||
$rtnstr .= '<td class="bg-' . $bgcolor . '">' . $online . "</td>\n";
|
||||
$rtnstr .= "</tr>\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user