diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 18:18:30 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 18:18:30 -0400 |
commit | 08b596d9a3bf7a54a5c87835818c502a88043f9e (patch) | |
tree | e4d672449de83bde8a620ab9c3674a3eb4ce035c /usr/local/www | |
parent | f5200c44757b817a194d63aea45b874519279830 (diff) | |
download | pfsense-08b596d9a3bf7a54a5c87835818c502a88043f9e.zip pfsense-08b596d9a3bf7a54a5c87835818c502a88043f9e.tar.gz |
Wait while bogons table is being updated up to 90 seconds. After it is updated notify user that it was updated
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/diag_showbogons.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php index 541e8e0..690e4de 100644 --- a/usr/local/www/diag_showbogons.php +++ b/usr/local/www/diag_showbogons.php @@ -38,6 +38,19 @@ require("guiconfig.inc"); if($_POST['Download']) { mwexec_bg("/etc/rc.update_bogons.sh now"); + $maxtimetowait = 0; + $loading = true; + while($loading == true) { + $isrunning = `ps awwwux | grep -v grep | grep bogons`; + if($isrunning == "") + $loading = false; + $maxtimetowait++; + if($maxtimetowait > 89) + $loading = false; + sleep(1); + } + if($maxtimetowait < 90) + $savemsg = "The bogons database has been updated."; } $bogons = `cat /etc/bogons`; |