network_check ".$bandwidth_options[$_COOKIE['zmBandwidth']] . ' ', ($user && $user['MaxBandwidth'] != 'low' ) ) ?>
v'.ZM_VERSION.'', canEdit('System') ) ?>
- trending_up :
storage
90 ? ' class="warning"' : '' ).'>'.translate('DB').':'.$connections.'/'.$max_connections.'';
?>
- :
Path()] = $area;
}
if ( ! isset($storage_paths[ZM_DIR_EVENTS]) ) {
array_push( $storage_areas, new Storage() );
}
$func = function($S){
$class = '';
if ( $S->disk_usage_percent() > 98 ) {
$class = 'error';
} else if ( $S->disk_usage_percent() > 90 ) {
$class = 'warning';
}
$title = human_filesize($S->disk_used_space()) . ' of ' . human_filesize($S->disk_total_space()).
( ( $S->disk_used_space() != $S->event_disk_space() ) ? ' ' .human_filesize($S->event_disk_space()) . ' used by events' : '' );
return ''.$S->Name() . ': ' . $S->disk_usage_percent().'%' . ''; };
#$func = function($S){ return ''.$S->Name() . ': ' . $S->disk_usage_percent().'%' . ''; };
if ( count($storage_areas) >= 4 )
$storage_areas = Storage::find( array('ServerId'=>null) );
if ( count($storage_areas) < 4 )
echo implode( ', ', array_map ( $func, $storage_areas ) );
echo ' ' . ZM_PATH_MAP .': '. getDiskPercent(ZM_PATH_MAP).'%';
?>