From 44e01aeee8a6d5b7c395d1eab24efc8f80552cc0 Mon Sep 17 00:00:00 2001 From: battosai30 Date: Tue, 28 Mar 2023 09:14:27 +0200 Subject: [PATCH] Update mailing-send.php The delay between email annouunced in prompt is not right : when the delay is called, usleep takes useconds as argument and MAILING_DELAY is multiplied by 1000000, but prompt information doesn't have to. --- scripts/emailings/mailing-send.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/emailings/mailing-send.php b/scripts/emailings/mailing-send.php index f2aeecec444..464a127ce15 100755 --- a/scripts/emailings/mailing-send.php +++ b/scripts/emailings/mailing-send.php @@ -87,7 +87,7 @@ if (!isModEnabled('mailing')) { print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." *****\n"; if (!empty($conf->global->MAILING_DELAY)) { - print 'A delay of '.((float) $conf->global->MAILING_DELAY * 1000000).' seconds has been set between each email'."\n"; + print 'A delay of '.((float) $conf->global->MAILING_DELAY).' seconds has been set between each email'."\n"; } if ($conf->global->MAILING_LIMIT_SENDBYCLI == '-1') {