~ubuntu-branches/ubuntu/precise/nordugrid-arc/precise

« back to all changes in this revision

Viewing changes to src/services/a-rex/infoproviders/ARC0ClusterInfo.pm

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2011-10-24 02:19:37 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111024021937-8whiie90uq2oqsok
Tags: 1.1.0-2
* Backport fixes for endian independent md5 checksum
* Filter out -Wl,-Bsymbolic-functions from default Ubuntu LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        $c->{homogeneity} = $homogeneous ? 'TRUE' : 'FALSE';
229
229
        $c->{nodeaccess} = 'inbound' if $inbound;
230
230
        $c->{nodeaccess} = 'outbound' if $outbound;
231
 
        $c->{totalcpus} = $lrms_info->{cluster}{totalcpus};
 
231
       if ($config->{service}{totalcpus}) {
 
232
           $c->{totalcpus} = $config->{service}{totalcpus};
 
233
       }
 
234
       else {
 
235
           $c->{totalcpus} = $lrms_info->{cluster}{totalcpus};
 
236
       }
232
237
        $c->{usedcpus} = $lrms_info->{cluster}{usedcpus};
233
238
        $c->{cpudistribution} = $lrms_info->{cluster}{cpudistribution};
234
239
        $c->{prelrmsqueued} = ($gmjobcount{accepted} + $gmjobcount{preparing} + $gmjobcount{submit});