diff options
author | Karel Zak | 2015-11-05 18:59:00 +0100 |
---|---|---|
committer | Karel Zak | 2015-11-05 18:59:00 +0100 |
commit | 803172f63dea6e9a9f49539de87a6230c0f13321 (patch) | |
tree | 267a4c2154a737c1cfa044df728c4c6bc410d6fa /sys-utils/prlimit.c | |
parent | bash-completion: add cal --span (diff) | |
download | kernel-qcow2-util-linux-803172f63dea6e9a9f49539de87a6230c0f13321.tar.gz kernel-qcow2-util-linux-803172f63dea6e9a9f49539de87a6230c0f13321.tar.xz kernel-qcow2-util-linux-803172f63dea6e9a9f49539de87a6230c0f13321.zip |
prlimit: cleanup output units
The change is based on kernel fs/proc/base.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/prlimit.c')
-rw-r--r-- | sys-utils/prlimit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index 0fa5d5799..b244ddb88 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -73,20 +73,20 @@ struct prlimit_desc { static struct prlimit_desc prlimit_desc[] = { [AS] = { "AS", N_("address space limit"), N_("bytes"), RLIMIT_AS }, - [CORE] = { "CORE", N_("max core file size"), N_("blocks"), RLIMIT_CORE }, + [CORE] = { "CORE", N_("max core file size"), N_("bytes"), RLIMIT_CORE }, [CPU] = { "CPU", N_("CPU time"), N_("seconds"), RLIMIT_CPU }, [DATA] = { "DATA", N_("max data size"), N_("bytes"), RLIMIT_DATA }, - [FSIZE] = { "FSIZE", N_("max file size"), N_("blocks"), RLIMIT_FSIZE }, - [LOCKS] = { "LOCKS", N_("max number of file locks held"), NULL, RLIMIT_LOCKS }, + [FSIZE] = { "FSIZE", N_("max file size"), N_("bytes"), RLIMIT_FSIZE }, + [LOCKS] = { "LOCKS", N_("max number of file locks held"), N_("locks"), RLIMIT_LOCKS }, [MEMLOCK] = { "MEMLOCK", N_("max locked-in-memory address space"), N_("bytes"), RLIMIT_MEMLOCK }, [MSGQUEUE] = { "MSGQUEUE", N_("max bytes in POSIX mqueues"), N_("bytes"), RLIMIT_MSGQUEUE }, [NICE] = { "NICE", N_("max nice prio allowed to raise"), NULL, RLIMIT_NICE }, - [NOFILE] = { "NOFILE", N_("max number of open files"), NULL, RLIMIT_NOFILE }, - [NPROC] = { "NPROC", N_("max number of processes"), NULL, RLIMIT_NPROC }, - [RSS] = { "RSS", N_("max resident set size"), N_("pages"), RLIMIT_RSS }, + [NOFILE] = { "NOFILE", N_("max number of open files"), N_("files"), RLIMIT_NOFILE }, + [NPROC] = { "NPROC", N_("max number of processes"), N_("processes"), RLIMIT_NPROC }, + [RSS] = { "RSS", N_("max resident set size"), N_("bytes"), RLIMIT_RSS }, [RTPRIO] = { "RTPRIO", N_("max real-time priority"), NULL, RLIMIT_RTPRIO }, [RTTIME] = { "RTTIME", N_("timeout for real-time tasks"), N_("microsecs"), RLIMIT_RTTIME }, - [SIGPENDING] = { "SIGPENDING", N_("max number of pending signals"), NULL, RLIMIT_SIGPENDING }, + [SIGPENDING] = { "SIGPENDING", N_("max number of pending signals"), N_("signals"), RLIMIT_SIGPENDING }, [STACK] = { "STACK", N_("max stack size"), N_("bytes"), RLIMIT_STACK } }; |