getValue('server','name')); $blockBody['graph'] = '
%s | %s | %s | ', 'Node','Last Acc','Type'); foreach ($nodes->getNodes() as $node) { foreach ($node->getStoragePools() as $stgp) { if (! isset($stgpooltotal[$stgp])) { $blockBody['occ'] .= sprintf('%s | ',$stgp); $stgpooltotal[$stgp] = 0; } } } $blockBody['occ'] .= sprintf('%s | ||||
%s | %s | %s | ', ($counter++%2==0?'even':'odd'), $node->getName(), tsmDate($node->time['lastacc'],'notime'), $type); foreach ($stgpooltotal as $stgpool => $details) { if (isset($stgpools[$stgpool])) { $blockBody['occ'] .= sprintf('%s | ',number_format($stgpools[$stgpool]['physical'])); $nodetotal += $stgpools[$stgpool]['physical']; $stgpooltotal[$stgpool] += $stgpools[$stgpool]['physical']; } else $blockBody['occ'] .= sprintf('%s | ',' '); } $blockBody['occ'] .= sprintf('%s | |||
| ';
$blockBody['graph'] .= ''; $blockBody['graph'] .= sprintf(' |