forked from KolibriOS/kolibrios
Rustem Gimadutdinov (rgimad)
68cf3e4293
- big refactoring, now uses libc.obj - added kfetch command git-svn-id: svn://kolibrios.org@8827 a494cfbc-eb01-0410-851d-a64ba20cac60
16 lines
312 B
C
16 lines
312 B
C
|
|
int cmd_memory(char param[])
|
|
{
|
|
unsigned total, free, used;
|
|
|
|
total = kol_system_mem();
|
|
free = kol_system_memfree();
|
|
used = total - free;
|
|
|
|
printf (CMD_FREE_FMT,
|
|
total, total/1024, free, free/1024, (free*100)/total, used, total/1024-free/1024, 100-(free*100)/total );
|
|
|
|
return TRUE;
|
|
}
|
|
|