Changeset 22 for trunk/fastxsl.c

Show
Ignore:
Timestamp:
04/14/06 13:08:40 (8 years ago)
Author:
george
Message:

accurately reflect sizes in returned stats

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/fastxsl.c

    r21 r22  
    401401 
    402402        add_assoc_long(return_value, "apparent_allocated", allocated_bytes); 
    403         add_assoc_long(return_value, "allocated", mm_maxsize() - mm_available(FASTXSL_G(cache)->mm)); 
    404         add_assoc_long(return_value, "shm_size", (long) mm_maxsize()); 
     403        add_assoc_long(return_value, "allocated",  
     404          (FASTXSL_G(memalloc)?FASTXSL_G(memalloc):mm_maxsize()) - mm_available(FASTXSL_G(cache)->mm)); 
     405        add_assoc_long(return_value, "shm_size", (long) FASTXSL_G(memalloc)?FASTXSL_G(memalloc):mm_maxsize()); 
    405406        mm_unlock(FASTXSL_G(cache)->mm); 
    406407}