|
cvs: pecl /apc apc.php: msg#00272php.pecl.cvs
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> |
|---|---|---|
| Previous by Date: | cvs: pecl /apc apc_globals.h package.xml: 00272, Rasmus Lerdorf |
|---|---|
| Next by Date: | cvs: pecl /apc apc.php: 00272, Ilia Alshanetsky |
| Previous by Thread: | cvs: pecl /apc apc.phpi: 00272, Rasmus Lerdorf |
| Next by Thread: | cvs: pecl /apc apc.php: 00272, Ilia Alshanetsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |