summaryrefslogtreecommitdiffstats
path: root/main/gnome-system-monitor/011-max-nice-linux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gnome-system-monitor/011-max-nice-linux.patch')
-rw-r--r--main/gnome-system-monitor/011-max-nice-linux.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/gnome-system-monitor/011-max-nice-linux.patch b/main/gnome-system-monitor/011-max-nice-linux.patch
new file mode 100644
index 000000000..55d4e4110
--- /dev/null
+++ b/main/gnome-system-monitor/011-max-nice-linux.patch
@@ -0,0 +1,21 @@
+From 7c493352b24fb6d0d8b003f25043b070244eeb2e Mon Sep 17 00:00:00 2001
+From: Chris Kühl <chrisk@openismus.com>
+Date: Fri, 15 Apr 2011 09:18:10 +0000
+Subject: Make maximum nice value 19 instead of 20 on Linux.
+
+---
+diff --git a/src/procdialogs.h b/src/procdialogs.h
+index eba3212..61decf8 100644
+--- a/src/procdialogs.h
++++ b/src/procdialogs.h
+@@ -26,7 +26,7 @@
+ /* These are the actual range of settable values. Values outside this range
+ are scaled back to these limits. So show these limits in the slider
+ */
+-#ifdef linux
++#ifdef __linux__
+ #define RENICE_VAL_MIN -20
+ #define RENICE_VAL_MAX 19
+ #else /* ! linux */
+--
+cgit v0.9