Changeset 231

Show
Ignore:
Timestamp:
09/27/09 09:48:34 (6 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk/magick
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/magick/resource.c

    r229 r231  
    852852    (void) FormatMagickString(time_limit,MaxTextExtent,"%lu",(unsigned long) 
    853853      resource_info.time_limit); 
    854   (void) fprintf(file,"File       Area     Memory        Map" 
    855     "       Disk  Thread       Time\n"); 
    856   (void) fprintf(file,"-----------------------------------------------------" 
    857     "--------------\n"); 
    858   (void) fprintf(file,"%4lu  %9s  %9s  %9s  %9s  %6lu  %9s\n",(unsigned long) 
    859     resource_info.file_limit,area_limit,memory_limit,map_limit,disk_limit, 
    860     (unsigned long) resource_info.thread_limit,time_limit); 
     854  (void) fprintf(file,"File        Area      Memory         Map" 
     855    "        Disk  Thread        Time\n"); 
     856  (void) fprintf(file,"------------------------------------------------------" 
     857    "------------------\n"); 
     858  (void) fprintf(file,"%4lu  %10s  %10s  %10s  %10s  %6lu  %10s\n", 
     859    (unsigned long) resource_info.file_limit,area_limit,memory_limit,map_limit, 
     860    disk_limit,(unsigned long) resource_info.thread_limit,time_limit); 
    861861  (void) fflush(file); 
    862862  RelinquishSemaphoreInfo(resource_semaphore); 
  • ImageMagick/trunk/magick/string.c

    r1 r231  
    10131013 
    10141014  static const char 
    1015     *units[] = { "b", "kb", "mb", "gb", "tb", "pb", "eb", (char *) NULL }; 
     1015    *units[] = 
     1016    { 
     1017      "b", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB", (char *) NULL 
     1018    }; 
    10161019 
    10171020#if defined(_MSC_VER) && (_MSC_VER == 1200) 
     
    10221025  for (i=0; (length >= 1024.0) && (units[i+1] != (const char *) NULL); i++) 
    10231026    length/=1024.0; 
    1024   for (j=2; j < 10; j++) 
     1027  for (j=2; j < 12; j++) 
    10251028  { 
    10261029    count=FormatMagickString(format,MaxTextExtent,"%.*g%s",(int) (i+j),length,