summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-08 09:51:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-08 09:51:50 +0200
commit69be9eb9a39f3bb67c700f9cde3e1a43d7bd276f (patch)
tree6cc0fcb9f05fbf978277030d224f681dc8d8e1fd
parent0e80b23b5efd17fcc12a79485b2bd55186b8500a (diff)
Fix sleep time (was 0 .. (MAX-1), now it is 1 .. MAX)
-rw-r--r--src/randsleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/randsleep.c b/src/randsleep.c
index ea9c588..46c6353 100644
--- a/src/randsleep.c
+++ b/src/randsleep.c
@@ -19,7 +19,7 @@ int main (int argc, char **argv) {
srand(ntime.tv_nsec);
- sleep(rand() % maxsleep);
+ sleep((rand() % maxsleep) + 1);
if (argc > 2) {
execvp(argv[2], argv + 2);