|
cvs: pecl /apc apc.php: msg#00224php.pecl.cvs
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> |
|---|---|---|
| Previous by Date: | cvs: pecl /http http_request_object.c: 00224, Michael Wallner |
|---|---|
| Next by Date: | cvs: pecl /apc apc.php: 00224, Ilia Alshanetsky |
| Previous by Thread: | cvs: pecl /apc apc.phpi: 00224, Rasmus Lerdorf |
| Next by Thread: | cvs: pecl /apc apc.php: 00224, Ilia Alshanetsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |