Ignore:
Timestamp:
May 24, 2008, 4:45:32 PM (17 years ago)
Author:
cinc
Message:

Fixed minor calculation error when reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/c/test-nom-2.c

    r341 r342  
    274274    g_message("Allocated %d chunks of %d bytes of memory -> %d bytes. Allocated %d objects.", NUMALLOCS, MEMSIZE*a, NUMALLOCS*MEMSIZE*a, NUMALLOCS);
    275275  }
    276   g_message("Allocated %d objects at all.", NUMALLOCS*a);
     276  g_message("Allocated %d objects at all.", NUMALLOCS*(a-1));
    277277 
    278278
     
    282282
    283283
    284   for(a=1; a<=100;a++)
     284  for(a =1; a<=100;a++)
    285285  {
    286286    int b;
     
    312312    g_message("Allocated %d chunks of %d bytes of memory -> %d bytes. Allocated %d objects.", NUMALLOCS, MEMSIZE*a, NUMALLOCS*MEMSIZE*a, NUMALLOCS);
    313313  }
    314   g_message("Allocated %d objects at all.", NUMALLOCS*a);
     314  g_message("Allocated %d objects at all.", NUMALLOCS*(a-1));
    315315
    316316  return 0;
Note: See TracChangeset for help on using the changeset viewer.