Changeset 2325 in /cluster/svnroot


Ignore:
Timestamp:
Apr 10, 2010 12:12:52 PM (11 years ago)
Author:
fitz
Message:

fixing off by 1 error in hpl.configure (#496)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/fitz-devel/trees/home/bccd/hpl/hpl.configure

    r2293 r2325  
    126126                }
    127127
    128                 if ($#factors == 0) {
     128                if (scalar(@factors) == 0) {
    129129                        push @factors, 1;
    130130                }
     
    133133                my $keep = 0;
    134134
    135                 for (my $i = 0; $i < $#factors; $i++) {
     135                for (my $i = 0; $i < scalar(@factors); $i++) {
    136136                        if ($diff == 0) { $diff = $cores - $factors[$i]; }
    137137                        if ($keep == 0) { $keep = $factors[$i]; }
Note: See TracChangeset for help on using the changeset viewer.