Commit 27738bd7 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

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.
parent e79fa9f5
......@@ -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++ )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment