diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-09 00:03:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-09 00:03:38 +0000 |
commit | 201b1541aca0cf35bc13871f439b77414672de76 (patch) | |
tree | 77736301c92452c041479e80cb6fa626b42ba5cb /packages/tinydns | |
parent | 2a5b1a262b5105aa1ca76438181b2899d1f58c51 (diff) | |
download | pfsense-packages-201b1541aca0cf35bc13871f439b77414672de76.tar.gz pfsense-packages-201b1541aca0cf35bc13871f439b77414672de76.tar.bz2 pfsense-packages-201b1541aca0cf35bc13871f439b77414672de76.zip |
report ms times if recorded
Diffstat (limited to 'packages/tinydns')
-rw-r--r-- | packages/tinydns/tinydns_status.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index a7d618e9..03bad76f 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -61,8 +61,9 @@ include("head.inc"); <td class="tabcont" > <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> - <td width="90%" class="listhdrr">IP</td> + <td width="80%" class="listhdrr">IP</td> <td width="10%" class="listhdrr">Status</td> + <td width="10%" class="listhdrr">Response time</td> </tr> <?php @@ -77,7 +78,11 @@ foreach($pingdir as $ping) { echo $status; echo "</td>"; echo "<td class=\"listlr\">"; - $msstatus = file_get_contents("/var/db/pingmsstatus/$ping"); + if(file_exists("/var/db/pingmsstatus/$ping")) + $msstatus = file_get_contents("/var/db/pingmsstatus/$ping"); + else + $msstatus = "N/A"; + echo $msstatus; echo "</td>"; echo "</tr>"; } |