Changeset 141 for trunk/web/addons/toga/libtoga.php
- Timestamp:
- 06/16/05 11:22:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/toga/libtoga.php
r140 r141 158 158 foreach( $result as $result_row ) 159 159 160 $nodes[] = $this->getNodeArray( $result_row[ 'id'] );160 $nodes[] = $this->getNodeArray( $result_row[node_id] ); 161 161 162 162 return $nodes; … … 171 171 foreach( $result as $result_row ) 172 172 173 $jobs[] = $this->getJobArray( $result_row[ 'id'] );173 $jobs[] = $this->getJobArray( $result_row[job_id] ); 174 174 175 175 return $jobs; … … 197 197 $map_key = explode( '_', $mykey ); 198 198 199 $newkey = $map_key[1]; 199 $rmap_key = array_reverse( $map_key ); 200 array_pop( $rmap_key ); 201 $map_key = array_reverse( $rmap_key ); 202 203 $newkey = implode( '_', $map_key ); 200 204 201 205 $myar[$newkey] = $result_row[$mykey]; … … 212 216 $this->connect(); 213 217 218 printf( "query = [%s]\n", $query ); 214 219 $result = pg_query( $this->conn, $query ); 215 220 … … 294 299 295 300 function graph( $descr ) { 301 // monitor2:/data/toga/rrds/LISA Cluster/gb-r15n11.irc.sara.nl# rrdtool graph /var/www/ganglia/test1.png --start 1118683231 --end 1118750431 --width 300 --height 400 DEF:'1'='./1118647515/load_one.rrd':'sum':AVERAGE DEF:'2'='./1118690723/load_one.rrd':'sum':AVERAGE DEF:'3'='./1118733925/load_one.rrd':'sum':AVERAGE AREA:1#555555:"load_one" AREA:2#555555 AREA:3#555555 302 // 380x461 303 // monitor2:/data/toga/rrds/LISA Cluster/gb-r15n11.irc.sara.nl# 296 304 //$command = $this->rrdbin . " graph - --start $start --end $end ". 297 305 "--width $width --height $height $upper_limit $lower_limit ".
Note: See TracChangeset
for help on using the changeset viewer.