diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-06 18:09:14 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-06 18:09:14 -0500 |
commit | 61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f (patch) | |
tree | 58b031e13456938e1117bd844e049f742473d93e /etc/inc/pfsense-utils.inc | |
parent | a0e157e99484b74130a0a0b729208ca4b43b5229 (diff) | |
download | pfsense-61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f.zip pfsense-61f0a115ad3abaa2daefd0a22d30ee05a1dbca2f.tar.gz |
Take into account< 10 too
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
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); } |