From 8afb2a44a5a54721d024b89e00c4505d31745dfe Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 13 May 2014 19:23:50 +0800 Subject: [PATCH] Import/Core_geoip.php --- Import/Core_geoip.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) 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(); } } -- 2.39.2