diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-04-19 17:39:27 -0300 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-04-19 17:39:27 -0300 |
commit | aae8807c654a75696df781d572ce970c3b39135a (patch) | |
tree | 9d63c0a52646c639474c5586ac610b0602d4a555 /config/openbgpd/openbgpd_status.php | |
parent | 3b7875ae2180e3fc7f7464b5d36300d05d1e9c49 (diff) | |
parent | a171a1ebbb0cedc872bc1ad952dbc320ea8f1e82 (diff) | |
download | pfsense-packages-aae8807c654a75696df781d572ce970c3b39135a.tar.gz pfsense-packages-aae8807c654a75696df781d572ce970c3b39135a.tar.bz2 pfsense-packages-aae8807c654a75696df781d572ce970c3b39135a.zip |
Merge branch 'master' of https://github.com/pfsense/pfsense-packages
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-rw-r--r-- | config/openbgpd/openbgpd_status.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index e6f69d07..6b27b4de 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -60,9 +60,13 @@ function doCmdT($title, $command) { fclose($fd); } else { $fd = popen("{$command} 2>&1", "r"); + $ct = 0; while (($line = fgets($fd)) !== FALSE) { echo htmlspecialchars($line, ENT_NOQUOTES); - ob_flush(); + if ($ct++ > 1000) { + ob_flush(); + $ct = 0; + } } pclose($fd); } |