summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-06 18:09:14 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-06 18:09:14 -0500
commit61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f (patch)
tree58b031e13456938e1117bd844e049f742473d93e
parenta0e157e99484b74130a0a0b729208ca4b43b5229 (diff)
downloadpfsense-61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f.zip
pfsense-61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f.tar.gz
Take into account< 10 too
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index feb32f0..9a3f41d 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1469,7 +1469,7 @@ function read_body($ch, $string) {
if($lastseen <> $downloadProgress and $downloadProgress < 101) {
if($sendto == "status") {
if($pkg_interface == "console") {
- if(substr($downloadProgress,2,1) == "0") {
+ if(substr($downloadProgress,2,1) == "0" || count($downloadProgress) < 2) {
$tostatus = $static_status . $downloadProgress . "%";
update_status($tostatus);
}
@@ -1479,7 +1479,7 @@ function read_body($ch, $string) {
}
} else {
if($pkg_interface == "console") {
- if(substr($downloadProgress,2,1) == "0") {
+ if(substr($downloadProgress,2,1) == "0" || count($downloadProgress) < 2) {
$tooutput = $static_output . $downloadProgress . "%";
update_output_window($tooutput);
}
OpenPOWER on IntegriCloud