Skip to content

Commit ac887fa

Browse files
committed
Should default to 10 minute span for maxwait if set to 0 or unset somehow and properly account for mathing
1 parent a66e867 commit ac887fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/web/lib/fog/system.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static function _versionCompare()
5353
public function __construct()
5454
{
5555
self::_versionCompare();
56-
define('FOG_VERSION', '1.5.10.1726');
56+
define('FOG_VERSION', '1.5.10.1727');
5757
define('FOG_SCHEMA', 273);
5858
define('FOG_BCACHE_VER', 141);
5959
define('FOG_CLIENT_VERSION', '0.13.0');

packages/web/lib/service/multicasttask.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ public function getCMD()
457457
false,
458458
''
459459
);
460+
$maxwait = int($maxwait);
461+
if (!$maxwait || $maxwait <= 0) {
462+
$maxwait = 10;
463+
}
460464
if ($address) {
461465
$address = long2ip(
462466
ip2long($address) + (
@@ -657,7 +661,7 @@ public function getCMD()
657661
(
658662
$i == 0 ?
659663
$maxwait * 60 :
660-
$maxwait * 6
664+
$maxwait * 60
661665
)
662666
),
663667
rtrim(

0 commit comments

Comments
 (0)