We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0934f commit b01c2b8Copy full SHA for b01c2b8
components/finsh/msh.c
@@ -80,9 +80,10 @@ int cmd_free(int argc, char **argv)
80
rt_size_t total = 0, used = 0, max_used = 0;
81
82
rt_memory_info(&total, &used, &max_used);
83
- rt_kprintf("total : %d\n", total);
84
- rt_kprintf("used : %d\n", used);
85
- rt_kprintf("maximum : %d\n", max_used);
+ rt_kprintf("total : %d\n", total);
+ rt_kprintf("used : %d\n", used);
+ rt_kprintf("maximum : %d\n", max_used);
86
+ rt_kprintf("available: %d\n", total - used);
87
#endif
88
return 0;
89
}
0 commit comments