logo       

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

php.pecl.cvs

Subject: cvs: pecl /apc apc.php

iliaa Sat Jul 30 13:06:40 2005 EDT

Modified files:
/pecl/apc apc.php
Log:
Don't forget about used memory at the end of the shm block in fragmentation
chart.


http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.37&r2=3.38&ty=u
Index: pecl/apc/apc.php
diff -u pecl/apc/apc.php:3.37 pecl/apc/apc.php:3.38
--- pecl/apc/apc.php:3.37 Fri Jul 29 11:08:57 2005
+++ pecl/apc/apc.php Sat Jul 30 13:06:37 2005
@@ -22,7 +22,7 @@

*/

-$VERSION='$Id: apc.php,v 3.37 2005/07/29 15:08:57 rasmus Exp $';
+$VERSION='$Id: apc.php,v 3.38 2005/07/30 17:06:37 iliaa Exp $';



@@ -381,6 +381,12 @@
$y+=$h;
$ptr = $block['offset']+$block['size'];
}
+ if ($ptr < $mem['seg_size']) { // memory at the end
+ $h = (GRAPH_SIZE-5) * ($mem['seg_size'] - $ptr)
/ $s;
+ if ($h > 0) {
+
fill_box($image,$x,$y,50,$h,$col_black,$col_red,bsize($mem['seg_size']-$ptr),$j++);
+ }
+ }
}
break;




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

News | FAQ | advertise