'; $blockBody['form'] .= sprintf('',get_request('cmd','REQUEST')); $blockBody['form'] .= '
'; $blockBody['form'] .= ''; $blockBody['form'] .= sprintf('',$app['server']->getIndex()); $blockBody['form'] .= ''; } else { $mediawait = $summaryInfo->mediaActions(); $graph['mediawait']['total'] = 0; $graph['mediawait']['count'] = 0; $graph['thruput']['total'] = 0; $graph['thruput']['count'] = 0; $mode = array(); foreach ($_REQUEST['mediaactions'] as $action) { if (isset($mediawait[$action])) foreach ($mediawait[$action] as $index => $detail) { $start = strtotime(tsmDate($detail['START_TIME'],'nomsec')); $end = strtotime(tsmDate($detail['END_TIME'],'nosec')); $graph['mediawait']['data'][$detail['ACTIVITY']][$end] = $detail['MEDIAW']; $graph['mediawait']['total'] += $detail['MEDIAW']; $graph['mediawait']['count']++; @$mode[$detail['MEDIAW']]++; $graph['thruput']['data'][$detail['ACTIVITY']][$end] = $detail['BYTES']/1024/($end+.1-$start); } # Drop the first and last entry ksort($mode); array_pop($mode); $total = 0; $counter = 0; foreach ($mode as $index => $value) { if ($counter) { $total += $index * $value; } $counter++; } if ($counter) $graph['mediawait']['mode'] = $total/$counter; # Save Session $_SESSION['graph'] = $graph; # Media Wait Graph $blockTitle['mediawait'] = sprintf(_('Migration Information for %s (%s) %s.%s.%s.%s'), $app['server']->GetStatusDetail('SERVER_NAME'), $app['server']->GetStatusDetail('PLATFORM'), $app['server']->GetStatusDetail('VERSION'), $app['server']->GetStatusDetail('RELEASE'), $app['server']->GetStatusDetail('LEVEL'), $app['server']->GetStatusDetail('SUBLEVEL')); $blockBody['mediawait'] = ''; $blockBody['mediawait'] .= sprintf('',_('Media Wait Graph')); $blockBody['mediawait'] .= ''; $blockBody['mediawait'] .= sprintf('', $app['server']->getIndex()); $blockBody['mediawait'] .= '
%s
'; $blockBody['mediawait'] .= ''; $blockBody['mediawait'] .= '
 
'; # Thruput Graph $blockTitle['thruput'] = sprintf(_('Server Thruput for %s (%s) %s.%s.%s.%s'), $app['server']->GetStatusDetail('SERVER_NAME'), $app['server']->GetStatusDetail('PLATFORM'), $app['server']->GetStatusDetail('VERSION'), $app['server']->GetStatusDetail('RELEASE'), $app['server']->GetStatusDetail('LEVEL'), $app['server']->GetStatusDetail('SUBLEVEL')); $blockBody['thruput'] = ''; $blockBody['thruput'] .= sprintf('',_('Server Thruput Graph')); $blockBody['thruput'] .= ''; $blockBody['thruput'] .= sprintf('', $app['server']->getIndex()); $blockBody['thruput'] .= '
%s
'; $blockBody['thruput'] .= ''; $blockBody['thruput'] .= '
 
'; } } # End render_page($blockTitle,$blockBody); ?>