Ignore:
Timestamp:
04/12/07 15:01:26 (15 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/overview.php,
web/addons/job_monarch/index.php,
web/addons/job_monarch/libtoga.php,
web/addons/job_monarch/image.php:

  • fixes for latest php4, is more strict with foreach loop
File:
1 edited

Legend:

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

    r299 r300  
    540540                        $display_job = 1;
    541541
    542                         foreach( $jobs[$jobid][nodes] as $tempnode )
    543                                 $all_used_nodes[] = $tempnode;
     542                        if( $jobs[$jobid][status] == 'R' ) {
     543                                foreach( $jobs[$jobid][nodes] as $tempnode ) {
     544                                        $all_used_nodes[] = $tempnode;
     545                                }
     546                        }
    544547
    545548                        $used_cpus += $cpus;
Note: See TracChangeset for help on using the changeset viewer.