support waiting for seconds with fractions

This commit is contained in:
Sascha Nitsch 2024-08-29 20:04:56 +02:00
parent 23d0b7ae9e
commit 7dd3987bd8

View file

@ -110,7 +110,7 @@ function mousemoverel($main, $control, $options)
*/
function sleep($main, $control, $options) : bool
{
usleep(intval($options['parameter']) * 1000000);
usleep(floatval($options['parameter']) * 1000000);
return true;
}