summaryrefslogtreecommitdiff
path: root/hurd/hurd/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/hurd/resource.h')
-rw-r--r--hurd/hurd/resource.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/hurd/resource.h b/hurd/hurd/resource.h
index af38ed3979..af9da09712 100644
--- a/hurd/hurd/resource.h
+++ b/hurd/hurd/resource.h
@@ -1,5 +1,5 @@
/* Resource limits for the Hurd.
- Copyright (C) 1994-2013 Free Software Foundation, Inc.
+ Copyright (C) 1994-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -42,8 +42,8 @@ extern error_t _hurd_priority_which_map (enum __priority_which which, int who,
/* Convert between Mach priority values and the priority
values used by getpriority, setpriority, and nice. */
-#define MACH_PRIORITY_TO_NICE(prio) (2 * ((prio) - 12))
-#define NICE_TO_MACH_PRIORITY(nice) (12 + ((nice) / 2))
+#define MACH_PRIORITY_TO_NICE(prio) ((prio) - 25)
+#define NICE_TO_MACH_PRIORITY(nice) ((nice) + 25)