diff options
Diffstat (limited to 'free.c')
-rw-r--r-- | free.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -37,6 +37,14 @@ extern int free_main(int argc, char **argv) | |||
37 | info.sharedram/=DIVISOR; | 37 | info.sharedram/=DIVISOR; |
38 | info.bufferram/=DIVISOR; | 38 | info.bufferram/=DIVISOR; |
39 | 39 | ||
40 | if (argc > 1 && **(argv + 1) == '-') { | ||
41 | usage("free\n" | ||
42 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
43 | "\nDisplays the amount of free and used system memory\n" | ||
44 | #endif | ||
45 | ); | ||
46 | } | ||
47 | |||
40 | 48 | ||
41 | printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free", | 49 | printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free", |
42 | "shared", "buffers"); | 50 | "shared", "buffers"); |