diff options
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/status_gateways.php | 10 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/gateways.widget.php | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/local/www/status_gateways.php b/src/usr/local/www/status_gateways.php index 8cb37e5..6c42513 100644 --- a/src/usr/local/www/status_gateways.php +++ b/src/usr/local/www/status_gateways.php @@ -99,6 +99,7 @@ display_top_tabs($tab_array); <th><?=gettext("Gateway"); ?></th> <th><?=gettext("Monitor"); ?></th> <th><?=gettext("RTT"); ?></th> + <th><?=gettext("RTTsd"); ?></th> <th><?=gettext("Loss"); ?></th> <th><?=gettext("Status"); ?></th> <th><?=gettext("Description"); ?></th> @@ -135,6 +136,15 @@ display_top_tabs($tab_array); <td> <?php if ($gateways_status[$gname]) { + echo $gateways_status[$gname]['stddev']; + } else { + echo gettext("Pending"); + } +?> + </td> + <td> +<?php + if ($gateways_status[$gname]) { echo $gateways_status[$gname]['loss']; } else { echo gettext("Pending"); diff --git a/src/usr/local/www/widgets/widgets/gateways.widget.php b/src/usr/local/www/widgets/widgets/gateways.widget.php index 69aeac0..16cd219 100644 --- a/src/usr/local/www/widgets/widgets/gateways.widget.php +++ b/src/usr/local/www/widgets/widgets/gateways.widget.php @@ -88,6 +88,7 @@ if ($_POST) { <tr> <th><?=gettext("Name")?></th> <th>RTT</th> + <th>RTTsd</th> <th><?=gettext("Loss")?></th> <th><?=gettext("Status")?></th> </tr> @@ -255,10 +256,11 @@ function compose_table_body_contents() { } $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] ? htmlspecialchars($gateways_status[$gname]['loss']) : gettext("Pending")) . "</td>\n"; $rtnstr .= '<td class="bg-' . $bgcolor . '">' . $online . "</td>\n"; $rtnstr .= "</tr>\n"; } return($rtnstr); } -?>
\ No newline at end of file +?> |