diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-08 09:51:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-08 09:51:50 +0200 |
commit | 69be9eb9a39f3bb67c700f9cde3e1a43d7bd276f (patch) | |
tree | 6cc0fcb9f05fbf978277030d224f681dc8d8e1fd | |
parent | 0e80b23b5efd17fcc12a79485b2bd55186b8500a (diff) |
Fix sleep time (was 0 .. (MAX-1), now it is 1 .. MAX)
-rw-r--r-- | src/randsleep.c | 2 |
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); |