Skip to content
Snippets Groups Projects
Commit 484e1641 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

random sleep

parent 3cc90667
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,9 @@ while (1) ...@@ -74,8 +74,9 @@ while (1)
fetch_and_convert ($dump->{date}, $seq, $dump->{size}); fetch_and_convert ($dump->{date}, $seq, $dump->{size});
} }
print scalar localtime (time()), " sleeping...\n"; my $sleep_time= 3600 + int(rand(3600));
sleep (3600); print scalar localtime (time()), " sleeping until ", scalar localtime (time()+$sleep_time), "\n";
sleep ($sleep_time);
} }
exit (0); exit (0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment