Changeset 653 for branches/0.3/web/addons/job_monarch
- Timestamp:
- 02/04/10 14:09:07 (13 years ago)
- Location:
- branches/0.3/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3/web/addons/job_monarch/libtoga.php
r652 r653 587 587 function TorqueXMLHandler( $clustername ) 588 588 { 589 $ jobs= array();590 $ clusters= array();589 $this->jobs = array(); 590 $this->clusters = array(); 591 591 $this->nodes = array(); 592 $ heartbeat= array();593 $ down_nodes= array();594 $ offline_nodes= array();592 $this->heartbeat = array(); 593 $this->down_nodes = array(); 594 $this->offline_nodes = array(); 595 595 $this->clustername = $clustername; 596 596 $this->fqdn = 1; -
branches/0.3/web/addons/job_monarch/overview.php
r652 r653 632 632 foreach( $sorted_jobs as $jobid => $sortdec ) 633 633 { 634 $report_time = $jobs[$jobid][ reported];634 $report_time = $jobs[$jobid]['reported']; 635 635 636 636 if( $jobs[$jobid]['status'] == 'R' ) … … 643 643 } 644 644 645 $ppn = (int) $jobs[$jobid]['ppn']? $jobs[$jobid]['ppn'] : 1;645 $ppn = isset( $jobs[$jobid]['ppn'] ) ? $jobs[$jobid]['ppn'] : 1; 646 646 $cpus = $nodes * $ppn; 647 647 … … 817 817 } 818 818 819 $ppn = (int) $jobs[$jobid]['ppn']? $jobs[$jobid]['ppn'] : 1;819 $ppn = isset( $jobs[$jobid]['ppn'] ) ? $jobs[$jobid]['ppn'] : 1; 820 820 $cpus = $nodes * $ppn; 821 821 … … 1119 1119 $load_color = load_color($host_load[$host]); 1120 1120 $graphargs = ($reports[$metricname]) ? "g=$metricname&" : "m=$metricname&"; 1121 $graphargs .= "z=small&c=$cluster_url&h=$host_url&l=$load_color " . "&v=$val['VAL']&r=job&jr=$jobrange&js=$jobstart";1121 $graphargs .= "z=small&c=$cluster_url&h=$host_url&l=$load_color&v=".$val['VAL']."&r=job&jr=$jobrange&js=$jobstart"; 1122 1122 if( $max > 0 ) 1123 1123 {
Note: See TracChangeset
for help on using the changeset viewer.