Changeset 306 for trunk/web/addons/job_monarch
- Timestamp:
- 04/16/07 17:56:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/libtoga.php
r305 r306 1042 1042 } 1043 1043 1044 //printf( "imagecreate: %dx%d", ($nodes_per_row*$node_width), ($node_rows*$node_width) ); 1045 //$image = imageCreateTrueColor( ($nodes_per_row*$node_width)+1, ($node_rows*$node_width)+1 ); 1046 $image = imageCreateTrueColor( $max_width, ($node_rows*$node_width)+1 ); 1044 $y_offset = 0; 1045 $font = 2; 1046 $fontheight = ImageFontHeight( $font ); 1047 $fontspaceing = 2; 1048 $y_offset = $fontheight + (2 * $fontspaceing); 1049 1050 $image = imageCreateTrueColor( $max_width, ($y_offset + (($node_rows*$node_width)+1) ) ); 1047 1051 $colorwhite = imageColorAllocate( $image, 255, 255, 255 ); 1048 1052 imageFill( $image, 0, 0, $colorwhite ); 1053 1054 if( $this->isSmall() ) { 1055 1056 $colorblue = imageColorAllocate( $image, 0, 0, 255 ); 1057 1058 imageString( $image, $font, 2, 2, "Monarch Joblist - cluster: ".$this->clustername, $colorblue ); 1059 } 1049 1060 1050 1061 $jobs = $mydatag->getJobs(); … … 1059 1070 1060 1071 $x = ($m * $node_width); 1061 $y = ($n * $node_width);1072 $y = $y_offset + ($n * $node_width); 1062 1073 1063 1074 $cur_node = ($n * $nodes_per_row) + ($m); 1064 1075 $host = $nodes_hosts[$cur_node]; 1065 1066 1076 1067 1077 if( isset( $nodes[$host] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.