Ignore:
Timestamp:
04/22/07 22:32:52 (17 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/conf.php:

  • incread BIG_CLUSTERIMAGE_MAXWIDTH so that all LISA's 39 racks will fit :P

web/addons/job_monarch/libtoga.php:

  • draw x/y labels not until node draw loop complete
  • fixed valid x row determination
Location:
trunk/web/addons/job_monarch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/conf.php

    r329 r332  
    4949// (250 pixels is same width as Ganglia's pie chart)
    5050//
    51 $BIG_CLUSTERIMAGE_MAXWIDTH = 450;
     51$BIG_CLUSTERIMAGE_MAXWIDTH = 500;
    5252
    5353// The size of a single node in the small clusterimage
  • trunk/web/addons/job_monarch/libtoga.php

    r331 r332  
    12731273                                        }
    12741274
    1275                                         if( $n == $x_min )
    1276                                         {
    1277                                                 $mfontspacing   = 1;
    1278                                                 $ylabel_x       = $x - ( $fontwidth * strlen( $y_max ) ) - $mfontspacing;
    1279                                                 $ylabel_y       = $y;
    1280 
    1281                                                 imageString( $image, $font, $ylabel_x, $ylabel_y, strval( $m ), $colorblue );
    1282                                         }
    1283                                         if( $m == $y_min )
    1284                                         {
    1285                                                 $mfontspacing   = 2;
    1286                                                 $xlabel_y       = $y - ( $fontheight * strlen( $x_max ) );
    1287                                                 $xlabel_x       = $x + $mfontspacing;
    1288 
    1289                                                 imageStringDown( $image, $font, $xlabel_x, $xlabel_y, strval( $n ), $colorblue );
    1290                                         }
    1291 
    12921275                                        if( isset( $nodes[$cur_node] ) )
    12931276                                        {
     
    13061289                                                        continue;
    13071290                                                }
    1308                                                 if( ( $rx - $x_min ) > $n )
     1291                                                if( ( $rx ) > $n )
    13091292                                                {
    1310                                                         $m      = $y_max;
     1293                                                        $m      = $y_max + 1;
    13111294                                                        continue;
    13121295                                                }
     
    13251308                                                        $nodes[$cur_node]->drawBig();
    13261309                                        }
     1310                                        if( $n == $x_min )
     1311                                        {
     1312                                                $mfontspacing   = 1;
     1313                                                $ylabel_x       = $x - ( $fontwidth * strlen( $y_max ) ) - $mfontspacing;
     1314                                                $ylabel_y       = $y;
     1315
     1316                                                imageString( $image, $font, $ylabel_x, $ylabel_y, strval( $m ), $colorblue );
     1317                                        }
     1318                                        if( $m == $y_min )
     1319                                        {
     1320                                                $mfontspacing   = 2;
     1321                                                $xlabel_y       = $y - ( $fontheight * strlen( $x_max ) );
     1322                                                $xlabel_x       = $x + $mfontspacing;
     1323
     1324                                                imageStringDown( $image, $font, $xlabel_x, $xlabel_y, strval( $n ), $colorblue );
     1325                                        }
     1326
    13271327                                        $cur_node++;
    13281328                                }
Note: See TracChangeset for help on using the changeset viewer.