multicasttask.class.php (fogproject-1.5.5) | : | multicasttask.class.php (fogproject-1.5.6) | ||
---|---|---|---|---|
skipping to change at line 393 | skipping to change at line 393 | |||
public function getBitrate() | public function getBitrate() | |||
{ | { | |||
return self::getClass( | return self::getClass( | |||
'Image', | 'Image', | |||
$this->_MultiSess->get('image') | $this->_MultiSess->get('image') | |||
)->getStorageGroup() | )->getStorageGroup() | |||
->getMasterStorageNode() | ->getMasterStorageNode() | |||
->get('bitrate'); | ->get('bitrate'); | |||
} | } | |||
/** | /** | |||
* Returns the rexmit hello interval | ||||
* | ||||
* @return string | ||||
*/ | ||||
public function getHelloInterval() | ||||
{ | ||||
return self::getClass( | ||||
'Image', | ||||
$this->_MultiSess->get('image') | ||||
)->getStorageGroup() | ||||
->getMasterStorageNode() | ||||
->get('helloInterval'); | ||||
} | ||||
/** | ||||
* Returns the partition id to be cloned, 0 for all | * Returns the partition id to be cloned, 0 for all | |||
* | * | |||
* @return int | * @return int | |||
*/ | */ | |||
public function getPartitions() | public function getPartitions() | |||
{ | { | |||
return (int)self::getClass( | return (int)self::getClass( | |||
'Image', | 'Image', | |||
$this->_MultiSess->get('image') | $this->_MultiSess->get('image') | |||
)->getPartitionType(); | )->getPartitionType(); | |||
skipping to change at line 459 | skipping to change at line 474 | |||
ip2long($address) + ( | ip2long($address) + ( | |||
( | ( | |||
$this->getPortBase() / 2 + 1 | $this->getPortBase() / 2 + 1 | |||
) % self::getSetting('FOG_MULTICAST_MAX_SESSIONS') | ) % self::getSetting('FOG_MULTICAST_MAX_SESSIONS') | |||
) | ) | |||
); | ); | |||
} | } | |||
$buildcmd = array( | $buildcmd = array( | |||
UDPSENDERPATH, | UDPSENDERPATH, | |||
( | ( | |||
$this->getHelloInterval() ? | ||||
sprintf(' --rexmit-hello-interval %s', $this->getHelloInterval() | ||||
) : | ||||
null | ||||
), | ||||
( | ||||
$this->getBitrate() ? | $this->getBitrate() ? | |||
sprintf(' --max-bitrate %s', $this->getBitrate()) : | sprintf(' --max-bitrate %s', $this->getBitrate()) : | |||
null | null | |||
), | ), | |||
( | ( | |||
$this->getInterface() ? | $this->getInterface() ? | |||
sprintf(' --interface %s', $this->getInterface()) : | sprintf(' --interface %s', $this->getInterface()) : | |||
null | null | |||
), | ), | |||
sprintf( | sprintf( | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 21 lines changed or added |