aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/racct.h
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2011-07-14 19:18:17 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2011-07-14 19:18:17 +0000
commit85a2f1b4f240d671dbc127daf344f75ca00cbe2e (patch)
tree58d02ef7888894f8eff47c14c682af6fdc0584dc /sys/sys/racct.h
parent0a7d45d3492b13c41ee9a39af7329cb23618a581 (diff)
downloadsrc-85a2f1b4f240d671dbc127daf344f75ca00cbe2e.tar.gz
src-85a2f1b4f240d671dbc127daf344f75ca00cbe2e.zip
Rename resource names to match these in login.conf.
Notes
Notes: svn path=/head/; revision=224036
Diffstat (limited to 'sys/sys/racct.h')
-rw-r--r--sys/sys/racct.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/racct.h b/sys/sys/racct.h
index 9e6907d803d3..119b3334c455 100644
--- a/sys/sys/racct.h
+++ b/sys/sys/racct.h
@@ -73,7 +73,7 @@ struct ucred;
/*
* Resource properties.
*/
-#define RACCT_IN_THOUSANDS 0x01
+#define RACCT_IN_MILLIONS 0x01
#define RACCT_RECLAIMABLE 0x02
#define RACCT_INHERITABLE 0x04
#define RACCT_DENIABLE 0x08
@@ -82,11 +82,11 @@ struct ucred;
extern int racct_types[];
/*
- * Amount stored in c_resources[] is thousand times bigger than what's
+ * Amount stored in c_resources[] is 10**6 times bigger than what's
* visible to the userland. It gets fixed up when retrieving resource
* usage or adding rules.
*/
-#define RACCT_IS_IN_THOUSANDS(X) (racct_types[X] & RACCT_IN_THOUSANDS)
+#define RACCT_IS_IN_MILLIONS(X) (racct_types[X] & RACCT_IN_MILLIONS)
/*
* Resource usage can drop, as opposed to only grow.