/[projects]/misc/xenconsole/ajaxdata.php
ViewVC logotype

Diff of /misc/xenconsole/ajaxdata.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2098 by torben, Tue Jul 23 21:03:32 2013 UTC revision 2099 by torben, Thu Jan 30 09:08:17 2014 UTC
# Line 97  foreach($vms_array as $vmref => $vm) { Line 97  foreach($vms_array as $vmref => $vm) {
97          $uuid = $vm["uuid"];          $uuid = $vm["uuid"];
98          $state = $vm["power_state"] ;          $state = $vm["power_state"] ;
99          $cpus = $vm["VCPUs_max"];          $cpus = $vm["VCPUs_max"];
100            
101            $operations = $vm["current_operations"];
102            if (sizeof($operations) > 0) {
103                    $state = $operations[0];
104            }
105    
106    
107          $network = "";          $network = "";
# Line 108  foreach($vms_array as $vmref => $vm) { Line 113  foreach($vms_array as $vmref => $vm) {
113          $maxmem = 0;          $maxmem = 0;
114          $guestversion = "";          $guestversion = "";
115    
116    
117          if ( $vm["power_state"] == "Running" ) {          if ( $vm["power_state"] == "Running" ) {
118                  if ($vm["guest_metrics"] != "OpaqueRef:NULL") {//guest tools installed                  if ($vm["guest_metrics"] != "OpaqueRef:NULL") {//guest tools installed
119                          //$guest_metrics = $xenserver->VM_guest_metrics__get_record( $vm["guest_metrics"] );                          //$guest_metrics = $xenserver->VM_guest_metrics__get_record( $vm["guest_metrics"] );

Legend:
Removed from v.2098  
changed lines
  Added in v.2099

  ViewVC Help
Powered by ViewVC 1.1.20