logo       

cvs: pecl /apc apc.php: msg#00224

php.pecl.cvs

Subject: cvs: pecl /apc apc.php

iliaa Wed Jul 27 20:22:20 2005 EDT

Modified files:
/pecl/apc apc.php
Log:
Handle empty blocks at the end.


http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.29&r2=3.30&ty=u
Index: pecl/apc/apc.php
diff -u pecl/apc/apc.php:3.29 pecl/apc/apc.php:3.30
--- pecl/apc/apc.php:3.29 Wed Jul 27 03:47:25 2005
+++ pecl/apc/apc.php Wed Jul 27 20:22:18 2005
@@ -21,7 +21,7 @@

*/

-$VERSION='$Id: apc.php,v 3.29 2005/07/27 07:47:25 rasmus Exp $';
+$VERSION='$Id: apc.php,v 3.30 2005/07/28 00:22:18 iliaa Exp $';



@@ -272,6 +272,11 @@
$angle_from = $angle_to;
$ptr = $block['offset']+$block['size'];
}
+ if ($ptr < $mem['seg_size']) { // memory at the end
+ $angle_to = $angle_from + ($mem['seg_size'] -
$ptr)/$s;
+ if(($angle_to+$fuzz)>1) $angle_to = 1;
+
fill_arc($image,$x,$y,$size,$angle_from*360,$angle_to*360,$col_black,$col_green,(($angle_to-$angle_from)>0.05)?bsize($s*($angle_to-$angle_from)):'');
+ }
}
} else {
$s=$cache['num_hits']+$cache['num_misses'];



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise