Changeset 330
- Timestamp:
- 04/22/07 15:51:37 (16 years ago)
- Location:
- trunk/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/libtoga.php
r329 r330 1219 1219 //print_r( $nodes ); 1220 1220 1221 $image = imageCreateTrueColor( $this->width, ($y_offset + (($node_rows*$node_width)+1) ) ); 1221 $image_width = $x_offset + ($node_width * ($x_max-$x_min+2)); 1222 $image_width = ($image_width < $this->width) ? $image_width : $this->width; 1223 $image_height = $y_offset + ($node_width * ($y_max-$y_min+2)); 1224 1225 $this->width = $image_width; 1226 $this->heigth = $image_heigth; 1227 1228 $image = imageCreateTrueColor( $image_width, $image_height ); 1222 1229 $colorwhite = imageColorAllocate( $image, 255, 255, 255 ); 1223 1230 … … 1244 1251 } 1245 1252 1246 if( isset( $nodes[$cur_node] ) ) { 1247 1248 1253 if( isset( $nodes[$cur_node] ) ) 1254 { 1249 1255 $host = $nodes[$cur_node]->getHostname(); 1250 1256 -
trunk/web/addons/job_monarch/overview.php
r328 r330 72 72 $tpl->assign( "clusterimage", "./image.php?". session_name() . "=" . session_id() ."&c=".rawurlencode($clustername)."&view=big-clusterimage".$filter_image_url ); 73 73 74 $tpl->assign( "clusterimage_width", $ic->getWidth() );75 $tpl->assign( "clusterimage_height", $ic->getHeight() );74 //$tpl->assign( "clusterimage_width", $ic->getWidth() ); 75 //$tpl->assign( "clusterimage_height", $ic->getHeight() ); 76 76 77 77 $tpl->newBlock( "node_clustermap" );
Note: See TracChangeset
for help on using the changeset viewer.