if (resource_info.time_limit != MagickResourceInfinity)
(void) FormatMagickString(time_limit,MaxTextExtent,"%lu",(unsigned long)
resource_info.time_limit);
- (void) fprintf(file,"File Area Memory Map"
- " Disk Thread Time\n");
- (void) fprintf(file,"-----------------------------------------------------"
- "--------------\n");
- (void) fprintf(file,"%4lu %9s %9s %9s %9s %6lu %9s\n",(unsigned long)
- resource_info.file_limit,area_limit,memory_limit,map_limit,disk_limit,
- (unsigned long) resource_info.thread_limit,time_limit);
+ (void) fprintf(file,"File Area Memory Map"
+ " Disk Thread Time\n");
+ (void) fprintf(file,"------------------------------------------------------"
+ "------------------\n");
+ (void) fprintf(file,"%4lu %10s %10s %10s %10s %6lu %10s\n",
+ (unsigned long) resource_info.file_limit,area_limit,memory_limit,map_limit,
+ disk_limit,(unsigned long) resource_info.thread_limit,time_limit);
(void) fflush(file);
RelinquishSemaphoreInfo(resource_semaphore);
return(MagickTrue);
j;
static const char
- *units[] = { "b", "kb", "mb", "gb", "tb", "pb", "eb", (char *) NULL };
+ *units[] =
+ {
+ "b", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB", (char *) NULL
+ };
#if defined(_MSC_VER) && (_MSC_VER == 1200)
length=(double) ((MagickOffsetType) size);
#endif
for (i=0; (length >= 1024.0) && (units[i+1] != (const char *) NULL); i++)
length/=1024.0;
- for (j=2; j < 10; j++)
+ for (j=2; j < 12; j++)
{
count=FormatMagickString(format,MaxTextExtent,"%.*g%s",(int) (i+j),length,
units[i]);