2010-10-17 23:50:55 +04:00
|
|
|
|
|
2012-06-04 16:54:51 +04:00
|
|
|
|
int cmd_memory(char param[])
|
2010-10-17 23:50:55 +04:00
|
|
|
|
{
|
|
|
|
|
unsigned total, free, used;
|
|
|
|
|
|
|
|
|
|
total = kol_system_mem();
|
|
|
|
|
free = kol_system_memfree();
|
|
|
|
|
used = total - free;
|
|
|
|
|
|
2012-06-04 16:54:51 +04:00
|
|
|
|
#if LANG_ENG
|
|
|
|
|
printf (" Total [kB / MB / %%]: %-7d / %-5d / 100\n\r Free [kB / MB / %%]: %-7d / %-5d / %d\n\r Used [kB / MB / %%]: %-7d / %-5d / %d\n\r",
|
|
|
|
|
#elif LANG_RUS
|
|
|
|
|
printf (" <20>ᥣ<EFBFBD> [<5B><> / <20><> / %%]: %-7d / %-5d / 100\n\r <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><> / <20><> / %%]: %-7d / %-5d / %d\n\r <20>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><> / <20><> / %%]: %-7d / %-5d / %d\n\r",
|
|
|
|
|
#endif
|
2010-10-17 23:50:55 +04:00
|
|
|
|
total, total/1024, free, free/1024, (free*100)/total, used, total/1024-free/1024, 100-(free*100)/total );
|
|
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
2013-02-17 19:22:51 +04:00
|
|
|
|
|