summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h24
2 files changed, 25 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 3288484..3b759de 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -207,6 +207,7 @@ USE_NAMEIF(APPLET(nameif, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_NC(APPLET(nc, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NETSTAT(APPLET(netstat, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_NMETER(APPLET(nmeter, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NSLOOKUP(APPLET(nslookup, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index ef348a2..b119c55 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2172,6 +2172,30 @@ USE_FEATURE_MDEV_CONFIG( \
"Options:\n" \
"\t-n ADJUST\tAdjust the scheduling priority by ADJUST"
+#define nmeter_trivial_usage \
+ "format_string"
+#define nmeter_full_usage \
+ "Nmeter monitors your system in real time.\n\n" \
+ "Format specifiers:\n" \
+ "%Nc or %[cN] monitor CPU. N - bar size, default 10\n" \
+ " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
+ "%[niface] monitor network interface 'iface'\n" \
+ "%m monitor allocated memory\n" \
+ "%[mf] monitor free memory\n" \
+ "%[mt] monitor total memory\n" \
+ "%s monitor allocated swap\n" \
+ "%f monitor number of used file descriptors\n" \
+ "%Ni monitor total/specific IRQ rate\n" \
+ "%x monitor context switch rate\n" \
+ "%p monitor forks\n" \
+ "%[pn] monitor # of processes\n" \
+ "%b monitor block io\n" \
+ "%Nt show time (with N decimal points)\n" \
+ "%Nd milliseconds between updates (default=1000)\n" \
+ "%r print <cr> instead of <lf> at EOL"
+#define nmeter_example_usage \
+ "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
+
#define nohup_trivial_usage \
"COMMAND [ARGS]"
#define nohup_full_usage \