mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MTR: loops should divide milliseconds by milliseconds
timeout is in seconds, sleeptime is in miliseconds. Otherwise we sleep for 10 times longer than the timeout.
This commit is contained in:
parent
e79fa9f542
commit
27738bd774
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ sub sleep_until_file_created ($$$$$) {
|
|||
my $proc= shift;
|
||||
my $warn_seconds = shift;
|
||||
my $sleeptime= 10; # Milliseconds
|
||||
my $loops= ($timeout * 10000) / $sleeptime;
|
||||
my $loops= ($timeout * 1000) / $sleeptime;
|
||||
my $message_time= 60;
|
||||
|
||||
for ( my $loop= 0; $loop <= $loops; $loop++ )
|
||||
|
|
Loading…
Reference in a new issue