Ignore:
Timestamp:
03/21/13 21:25:19 (11 years ago)
Author:
ramonb
Message:
  • more cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/overview.php

    r711 r714  
    7575        $tpl->assign( "clusterimage", "./image.php?". session_name() . "=" . session_id() ."&c=".rawurlencode($clustername)."&j_view=big-clusterimage".$filter_image_url );
    7676
    77         //$tpl->assign( "clusterimage_width", $ic->getWidth() );
    78         //$tpl->assign( "clusterimage_height", $ic->getHeight() );
    79 
    8077        $tpl->newBlock( "node_clustermap" );
    8178        $tpl->assign( "node_area_map", $ic->getImagemapArea() );
     
    271268        $used_cpus              = $nr_cpus - $empty_cpus;
    272269
    273         //$empty_percentage     = ($empty_cpus / $nr_cpus) * 100;
    274270        $empty_percentage       = $empty_cpus;
    275271
     
    380376        }
    381377
    382         //$percentage   = 0;
    383         //$slice_count  = 0;
    384 
    385         // Find rounding errors: total has to be 100
    386         //
    387         //foreach( $graphvals as $name => $totalweight)
    388         //{
    389         //      $percentage     = $percentage + $totalweight;
    390         //      $slice_count    = $slice_count + 1;
    391         //}
    392 
    393         //$round_offset = ( 100 - $percentage ) / $slice_count;
    394 
    395378        foreach( $graphvals as $name => $totalweight)
    396379        {
    397                 //$percentage   = ( $totalweight * 100 ) + $round_offset;
    398380                $percentage     = $totalweight;
    399381               
     
    674656                                        if( isset( $hostname ) && $hostname != '' )
    675657                                        {
    676                                                 //$filter[host] = $hostname;
    677 
    678658                                                $domain_len     = 0 - strlen( $jobs[$jobid]['domain'] );
    679659                                                $hostnode       = $tempnode;
     
    880860                                {
    881861                                        $runningtime            = makeTime( $report_time - $start_time );
    882                                         //$job_runningtime      = $report_time - $start_time;
    883862                                        $job_runningtime        = $heartbeat - $start_time;
    884863
     
    955934        }
    956935
    957         //print_r( $metrics );
    958 
    959936        global $longtitle, $title;
    960937
     
    1011988                        $hosts_up       = $jobs[$filter['id']]['nodes'];
    1012989
    1013                         //printf( "r %s\n", $job_runningtime );
    1014 
    1015990                        $r              = intval($job_runningtime * 1.2);
    1016991
    1017                         //$jobrange     = ($job_runningtime < 3600) ? -3600 : -$r ;
    1018992                        $jobrange       = -$r ;
    1019                         //$jobstart     = $report_time - $job_runningtime;
    1020993                        $jobstart       = $start_time;
    1021 
    1022                         //printf( "jr %s\n", $jobrange );
    1023                         //printf( "js %s\n", $jobstart);
    1024994
    1025995                        if ( $reports[$metricname] )
Note: See TracChangeset for help on using the changeset viewer.