"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/fog/storagegroup.class.php" between
fogproject-1.5.7.tar.gz and fogproject-1.5.8.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.

storagegroup.class.php  (fogproject-1.5.7):storagegroup.class.php  (fogproject-1.5.8)
skipping to change at line 140 skipping to change at line 140
} }
return $tot; return $tot;
} }
/** /**
* Returns total used / in tasking slots * Returns total used / in tasking slots
* *
* @return int * @return int
*/ */
public function getUsedSlots() public function getUsedSlots()
{ {
return self::getClass('TaskManager') $count = 0;
->count( $find = array(
array( 'storagegroupID' => $this->get('id'),
'stateID' => self::getProgressState(), 'id' => $this->get('allnodes'),
'storagenodeID' => $this->get('enablednodes'), 'isEnabled' => 1
'typeID' => $this->get('usedtasks'), );
) foreach ((array)self::getClass('StorageNodeManager')
); ->find($find) as &$node
) {
$count += $node->getUsedSlotCount();
}
return $count;
} }
/** /**
* Returns total queued slots * Returns total queued slots
* *
* @return int * @return int
*/ */
public function getQueuedSlots() public function getQueuedSlots()
{ {
return self::getClass('TaskManager') $count = 0;
->count( $find = array(
array( 'storagegroupID' => $this->get('id'),
'stateID' => self::getQueuedStates(), 'id' => $this->get('allnodes'),
'storagenodeID' => $this->get('enablednodes'), 'isEnabled' => 1
'typeID' => $this->get('usedtasks'), );
) foreach ((array)self::getClass('StorageNodeManager')
); ->find($find) as &$node
) {
$count += $node->getQueuedSlotCount();
}
return $count;
} }
/** /**
* Returns total supported clients * Returns total supported clients
* *
* @return int * @return int
*/ */
public function getTotalSupportedClients() public function getTotalSupportedClients()
{ {
return self::getSubObjectIDs( return self::getSubObjectIDs(
'StorageNode', 'StorageNode',
 End of changes. 2 change blocks. 
16 lines changed or deleted 24 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)