Ignore:
Timestamp:
Mar 1, 2007 12:02:46 AM (18 years ago)
Author:
bennylp
Message:

Fixed ticket 146: Division by zero in pj_pool_factory_dump() when there is no active pool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/pool_caching.c

    r974 r1019  
    272272            pool = pool->next; 
    273273        } 
    274         PJ_LOG(3,("cachpool", "  Total %9d of %9d (%d %%) used!", 
    275                               total_used, total_capacity, 
    276                               total_used * 100 / total_capacity)); 
     274        if (total_capacity) { 
     275            PJ_LOG(3,("cachpool", "  Total %9d of %9d (%d %%) used!", 
     276                                  total_used, total_capacity, 
     277                                  total_used * 100 / total_capacity)); 
     278        } 
    277279    } 
    278280 
Note: See TracChangeset for help on using the changeset viewer.