Subversion Repositories Kolibri OS

Rev

Rev 5487 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5487 Rev 5493
Line 271... Line 271...
271
  while (bytes>1023) bytes/=1024;
271
  while (bytes>1023) bytes/=1024;
272
  itoa_(#size_prefix, bytes);
272
  itoa_(#size_prefix, bytes);
273
  strcat(#size_prefix, #size_nm);
273
  strcat(#size_prefix, #size_nm);
274
  return #size_prefix;
274
  return #size_prefix;
275
}
275
}
276
>
276
 
-
 
277
:dword ConvertSizeToKb(unsigned int bytes)
-
 
278
{
-
 
279
	unsigned char size[25]=0;
-
 
280
	unsigned int kb;
-
 
281
	dword kb_line;
-
 
282
 
-
 
283
	kb_line = itoa(bytes / 1024);
-
 
284
	strcpy(#size, kb_line);
-
 
285
	strcat(#size, " Kb");
-
 
286
 
-
 
287
	return #size;
-
 
288
}
-
 
289
>
277
>
290
>