From: Edward Date: Tue, 13 May 2014 11:23:50 +0000 (+0800) Subject: Import/Core_geoip.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=8afb2a44a5a54721d024b89e00c4505d31745dfe Import/Core_geoip.php --- diff --git a/Import/Core_geoip.php b/Import/Core_geoip.php index 093ee0f8..50d429e5 100644 --- a/Import/Core_geoip.php +++ b/Import/Core_geoip.php @@ -108,24 +108,7 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo $this->processLocation($row); - echo "\033[K"; // Erase to end of line: - - $echo = ''; - - if (strlen($echo)) { - echo "\033[".strlen($echo)."D"; // Move $length characters backward - } - - $echo = str_pad(ROUND(($this->processed / $this->total),2) * 100, 3, ' ', STR_PAD_LEFT) . - " % (" . str_pad(($this->processed), strlen($this->total), ' ', STR_PAD_LEFT) . - " / {$this->total}) - out {$this->out_count}"; - - - echo $this->echo; - - if($this->processed == $this->total){ - echo "\n"; - } + $this->updateProcessBar(); } }