blob: 32175744132c0109a0c6891cb438e084e8ceb0e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <App/ShellApp.proto.h>
#include <Binding/Sys.ns.h>
class free : public ShellApp {
public:
free() : ShellApp("free", "Get the amount of system free RAM") {}
int run() {
outvt << "Free RAM: " << (s64int)Sys::freeRam() << " Kio of " << (s64int)Sys::totalRam() << " Kio\n";
}
};
APP(free);
|