Changeset 714 for branches/0.4/web/addons/job_monarch/overview.php
- Timestamp:
- 03/21/13 21:25:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/overview.php
r711 r714 75 75 $tpl->assign( "clusterimage", "./image.php?". session_name() . "=" . session_id() ."&c=".rawurlencode($clustername)."&j_view=big-clusterimage".$filter_image_url ); 76 76 77 //$tpl->assign( "clusterimage_width", $ic->getWidth() );78 //$tpl->assign( "clusterimage_height", $ic->getHeight() );79 80 77 $tpl->newBlock( "node_clustermap" ); 81 78 $tpl->assign( "node_area_map", $ic->getImagemapArea() ); … … 271 268 $used_cpus = $nr_cpus - $empty_cpus; 272 269 273 //$empty_percentage = ($empty_cpus / $nr_cpus) * 100;274 270 $empty_percentage = $empty_cpus; 275 271 … … 380 376 } 381 377 382 //$percentage = 0;383 //$slice_count = 0;384 385 // Find rounding errors: total has to be 100386 //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 395 378 foreach( $graphvals as $name => $totalweight) 396 379 { 397 //$percentage = ( $totalweight * 100 ) + $round_offset;398 380 $percentage = $totalweight; 399 381 … … 674 656 if( isset( $hostname ) && $hostname != '' ) 675 657 { 676 //$filter[host] = $hostname;677 678 658 $domain_len = 0 - strlen( $jobs[$jobid]['domain'] ); 679 659 $hostnode = $tempnode; … … 880 860 { 881 861 $runningtime = makeTime( $report_time - $start_time ); 882 //$job_runningtime = $report_time - $start_time;883 862 $job_runningtime = $heartbeat - $start_time; 884 863 … … 955 934 } 956 935 957 //print_r( $metrics );958 959 936 global $longtitle, $title; 960 937 … … 1011 988 $hosts_up = $jobs[$filter['id']]['nodes']; 1012 989 1013 //printf( "r %s\n", $job_runningtime );1014 1015 990 $r = intval($job_runningtime * 1.2); 1016 991 1017 //$jobrange = ($job_runningtime < 3600) ? -3600 : -$r ;1018 992 $jobrange = -$r ; 1019 //$jobstart = $report_time - $job_runningtime;1020 993 $jobstart = $start_time; 1021 1022 //printf( "jr %s\n", $jobrange );1023 //printf( "js %s\n", $jobstart);1024 994 1025 995 if ( $reports[$metricname] )
Note: See TracChangeset
for help on using the changeset viewer.