oga's tools
リビジョン | 2dcdbfc0e5ee9c76bb2aa095390912422bedc36c (tree) |
---|---|
日時 | 2022-05-22 06:48:30 |
作者 | hyperoga <hyperoga@gmai...> |
コミッター | hyperoga |
V1.02 add description
@@ -3,6 +3,7 @@ | ||
3 | 3 | * |
4 | 4 | * 2001/12/09 V1.00 based xmem V0.33 by oga. |
5 | 5 | * 2005/09/11 V1.01 support Linux 2.6.x |
6 | + * 2022/05/22 V1.02 add description to usage | |
6 | 7 | */ |
7 | 8 | |
8 | 9 | #include <stdio.h> |
@@ -12,7 +13,7 @@ | ||
12 | 13 | #include <unistd.h> |
13 | 14 | #include <errno.h> |
14 | 15 | |
15 | -#define VER "Ver 1.01" | |
16 | +#define VER "Ver 1.02" | |
16 | 17 | #define S_MEM "Memory" |
17 | 18 | #define S_SWAP "Swap" |
18 | 19 |
@@ -458,6 +459,10 @@ int main(int a, char *b[]) | ||
458 | 459 | for (i = 1; i<a ; i++) { |
459 | 460 | if (!strncmp(b[i],"-h",2)) { |
460 | 461 | printf("usage : cmem [-update <time>]\n"); |
462 | + printf(" # : used\n"); | |
463 | + printf(" * : cached\n"); | |
464 | + printf(" = : buffers\n"); | |
465 | + printf(" . : free\n"); | |
461 | 466 | exit(1); |
462 | 467 | } |
463 | 468 | if (!strncmp(b[i],"-u",2) && a > i) { |