From c5c96a53439616f776561667d386bdf5ec6451f5 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 9 Jan 2012 20:26:38 +0000 Subject: [PATCH] fixed small bugs, updated docs git-svn-id: svn://192.168.202.10@1772 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_VDhopper.pl | 7 +++++-- agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt | 12 ++++++------ agc_2-X/trunk/www/vicidial/admin_header.php | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_VDhopper.pl b/agc_2-X/trunk/bin/AST_VDhopper.pl index 33b21788..d5428153 100644 --- a/agc_2-X/trunk/bin/AST_VDhopper.pl +++ b/agc_2-X/trunk/bin/AST_VDhopper.pl @@ -68,6 +68,7 @@ # 110212-2255 - Added scheduled callback custom statuses capability # 110214-2319 - Added lead_order_secondary option # 111006-1416 - Added call_count_limit option +# 120109-1510 - Fixed list mix bug # # constants @@ -2066,8 +2067,10 @@ foreach(@campaign_id) @list_mix_stepARY = split(/\|/,$list_mixARY[$x]); if ($list_mix_stepARY[2] > 0) { - $LM_step_goal[$x] = ( ($list_mix_stepARY[2] / 100) * $hopper_level[$i]); - $LM_step_even[$x] = ( (100 / $list_mix_stepARY[2]) * 100000); + $LM_step_goal[$x] = int( ($list_mix_stepARY[2] / 100) * $hopper_level[$i]); + $LM_step_even[$x] = int( (100 / $list_mix_stepARY[2]) * 100000); + if ($LM_step_goal[$x] < 1) {$LM_step_goal[$x] = 1;} + if ($LM_step_even[$x] < 1) {$LM_step_even[$x] = 1;} } else { diff --git a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt index c90aed8a..7061b2ad 100644 --- a/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt +++ b/agc_2-X/trunk/docs/REQUIRED_APPS_INSTALL.txt @@ -204,10 +204,10 @@ make install cd /usr/local -wget http://us2.php.net/distributions/php-5.2.10.tar.gz -gunzip php-5.2.10.tar.gz -tar xvf php-5.2.10.tar -wget http://mirror.nyi.net/apache/httpd/httpd-2.2.13.tar.gz +wget http://museum.php.net/php5/php-5.2.11.tar.gz +gunzip php-5.2.11.tar.gz +tar xvf php-5.2.11.tar +wget http://archive.apache.org/dist/httpd/httpd-2.2.13.tar.gz gunzip httpd-2.2.13.tar.gz tar xvf httpd-2.2.13.tar cd httpd-2.2.13 @@ -224,7 +224,7 @@ openssl req -new -x509 -days 1200 -keyout /usr/local/apache2/conf/ssl.key/server openssl rsa -in /usr/local/apache2/conf/ssl.key/server.key.cpy -out /usr/local/apache2/conf/ssl.key/server.key -cd ../php-5.2.10 +cd ../php-5.2.11 make clean ./configure --with-mysql=/usr/local/mysql --enable-inline-optimization --enable-memory-limit --enable-track-vars --enable-libgcc --enable-sysvsem --with-openssl=/usr/local/ssl --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --enable-mbstring make @@ -280,7 +280,7 @@ vi /usr/local/lib/php.ini cd /usr/local -wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip +wget ftp://sanek508.net.ru/Soft/Http%20Server/eaccelerator-0.9.5.3.zip unzip eaccelerator-0.9.5.3.zip cd eaccelerator-0.9.5.3 export PHP_PREFIX="/usr/local" diff --git a/agc_2-X/trunk/www/vicidial/admin_header.php b/agc_2-X/trunk/www/vicidial/admin_header.php index cdb4f83b..771a49c5 100644 --- a/agc_2-X/trunk/www/vicidial/admin_header.php +++ b/agc_2-X/trunk/www/vicidial/admin_header.php @@ -1037,7 +1037,7 @@ echo "\n"; --> -\n";