Subversion Repositories Kolibri OS

Rev

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

Rev 6563 Rev 6568
Line 305... Line 305...
305
{
305
{
306
	unsigned char size[25]=0;
306
	unsigned char size[25]=0;
307
	unsigned int kb;
307
	unsigned int kb;
308
	dword kb_line;
308
	dword kb_line;
Line -... Line 309...
-
 
309
 
-
 
310
	if (bytes >= 1024)
309
 
311
	{
310
	kb_line = itoa(bytes / 1024);
312
		kb_line = itoa(bytes / 1024);
311
	strcpy(#size, kb_line);
313
		strcpy(#size, kb_line);
-
 
314
		strcat(#size, " Kb");		
-
 
315
	}
-
 
316
	else {
-
 
317
		kb_line = itoa(bytes);
-
 
318
		strcpy(#size, kb_line);
-
 
319
		strcat(#size, " b");
Line 312... Line 320...
312
	strcat(#size, " Kb");
320
	}
313
 
321
 
314
	return #size;
322
	return #size;
315
}
323
}