diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-05 20:21:07 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-05 20:21:07 -0500 |
commit | 77f8716504ab24b4a9b056fd6b9fbc7233de56e0 (patch) | |
tree | f854525a0c152aba147397794bc964baa087438d | |
parent | 86ab47ff209d697d33462af31f44a60ab04f1809 (diff) | |
download | pfsense-77f8716504ab24b4a9b056fd6b9fbc7233de56e0.zip pfsense-77f8716504ab24b4a9b056fd6b9fbc7233de56e0.tar.gz |
Replace '' with No response
-rw-r--r-- | usr/local/www/diag_dns.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index aa795cd..9795c24 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -57,9 +57,11 @@ if ($_POST) { for ($dnscounter=1; $dnscounter<5; $dnscounter++) { $dns_server = $pconfig['dns' . $dnscounter]; $query_time = `dig google.com @{$dns_server} | grep Query | cut -d':' -f2`; + if($query_time == "") + $query_time = "No response"; $new_qt = array(); $new_qt['dns_server'] = $dns_server; - $new_qt['query_time'] = $query_time; + $new_qt['query_time'] = $query_time; $dns_speeds[] = $new_qt; unset($new_qt); } |