summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.7/generic/50_top_mintime.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/procps-3.2.7/generic/50_top_mintime.dpatch')
-rw-r--r--patches/procps-3.2.7/generic/50_top_mintime.dpatch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/procps-3.2.7/generic/50_top_mintime.dpatch b/patches/procps-3.2.7/generic/50_top_mintime.dpatch
new file mode 100644
index 000000000..c38f889b8
--- /dev/null
+++ b/patches/procps-3.2.7/generic/50_top_mintime.dpatch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 50_top_mintime.dpatch by <csmall@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Checks minimum time is valid
+
+@DPATCH@
+diff -urNad procps-3.2.7~/top.c procps-3.2.7/top.c
+--- procps-3.2.7~/top.c 2007-10-04 21:58:56.000000000 +1000
++++ procps-3.2.7/top.c 2007-10-04 21:59:24.000000000 +1000
+@@ -2535,7 +2535,8 @@
+ else {
+ float tmp =
+ get_float(fmtmk("Change delay from %.1f to", Rc.delay_time));
+- if (tmp > -1) Rc.delay_time = tmp;
++ if (tmp == 0.0) show_msg("\aNot valid");
++ else if (tmp > 0) Rc.delay_time = tmp;
+ }
+ break;
+