- Timestamp:
- 07/02/08 13:17:49 (15 years ago)
- Location:
- trunk/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/chart.php
r529 r530 46 46 // Draw the pie slices and percentages text 47 47 // 48 $myChart->drawPieGraph( $DataSet->GetData(), $DataSet->GetDataDescription(), 1 50, 90, 110, TRUE, TRUE, 50, 20, 20 );48 $myChart->drawPieGraph( $DataSet->GetData(), $DataSet->GetDataDescription(), 160, 100, 110, TRUE, TRUE, 50, 20, 20 ); 49 49 50 50 // Draw legend text -
trunk/web/addons/job_monarch/overview.php
r527 r530 274 274 $used_cpus = $nr_cpus - $empty_cpus; 275 275 276 $empty_percentage = ($empty_cpus / $nr_cpus) * 100; 276 //$empty_percentage = ($empty_cpus / $nr_cpus) * 100; 277 $empty_percentage = $empty_cpus; 277 278 278 279 $qcolors = array(); … … 300 301 // - what percentage of the cpus is in use by this job 301 302 // 302 $job_weight[$myjob] = ( $job_cpu / $nr_cpus );303 303 //$job_weight[$myjob] = ( $job_cpu / $nr_cpus ); 304 $job_weight[$myjob] = $job_cpu; 304 305 305 306 if( isset( $piefilter ) ) { … … 382 383 } 383 384 385 //$percentage = 0; 386 //$slice_count = 0; 387 388 // Find rounding errors: total has to be 100 389 // 390 //foreach( $graphvals as $name => $totalweight) 391 //{ 392 // $percentage = $percentage + $totalweight; 393 // $slice_count = $slice_count + 1; 394 //} 395 396 //$round_offset = ( 100 - $percentage ) / $slice_count; 397 384 398 foreach( $graphvals as $name => $totalweight) 385 399 { 386 $percentage = ( $totalweight * 100 ); 400 //$percentage = ( $totalweight * 100 ) + $round_offset; 401 $percentage = $totalweight; 387 402 388 403 $color = randomColor( $qcolors );
Note: See TracChangeset
for help on using the changeset viewer.