17 lines
576 B
Diff
17 lines
576 B
Diff
|
Author: <csmall@debian.org>
|
||
|
Description: Checks minimum time is valid
|
||
|
Index: b/top.c
|
||
|
===================================================================
|
||
|
--- a/top.c 2009-11-24 21:00:39.000000000 +1100
|
||
|
+++ b/top.c 2009-11-24 21:00:48.000000000 +1100
|
||
|
@@ -2552,7 +2552,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;
|
||
|
|