diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-03-16 08:17:03 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-03-16 08:17:03 -0300 |
commit | b78655a9cf9cdafb4998b30fb3894bd6c262ea96 (patch) | |
tree | 0223d57ad9b22bf0ff90264bdb00008fb0fbfede /usr/local/sbin/show_filter_reload_status.php | |
parent | aa77c7baf2020c4de1a4ae5db8b587a5a7c14bb8 (diff) | |
parent | 7d61beba45e06f4be2fc5436f14e879ec7dd2675 (diff) | |
download | pfsense-b78655a9cf9cdafb4998b30fb3894bd6c262ea96.zip pfsense-b78655a9cf9cdafb4998b30fb3894bd6c262ea96.tar.gz |
Merge pull request #1562 from phil-davis/usr-review1
Diffstat (limited to 'usr/local/sbin/show_filter_reload_status.php')
-rwxr-xr-x | usr/local/sbin/show_filter_reload_status.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/usr/local/sbin/show_filter_reload_status.php b/usr/local/sbin/show_filter_reload_status.php index 5251c3e..daa35ad 100755 --- a/usr/local/sbin/show_filter_reload_status.php +++ b/usr/local/sbin/show_filter_reload_status.php @@ -3,24 +3,24 @@ $last_text = ""; -while(!stristr($status, "Done")) { - $status = get_status(); - if($status <> "") { - echo $status . "\n"; - } - sleep(1); +while (!stristr($status, "Done")) { + $status = get_status(); + if ($status <> "") { + echo $status . "\n"; + } + sleep(1); } function get_status() { - global $last_text; - $status = file_get_contents("/var/run/filter_reload_status"); - $status = str_replace("...", "", $status); - $status .= "..."; - if($status <> $last_text) { - $last_text = $status; - return $status; - } - return ""; + global $last_text; + $status = file_get_contents("/var/run/filter_reload_status"); + $status = str_replace("...", "", $status); + $status .= "..."; + if ($status <> $last_text) { + $last_text = $status; + return $status; + } + return ""; } ?> |