--- misc/xenconsole/index.php 2012/12/09 19:57:00 1895 +++ misc/xenconsole/index.php 2012/12/10 12:40:58 1898 @@ -97,7 +97,12 @@ var conurl = $(this).find('conurl').text(); var session = $(this).find('session').text(); var os = $(this).find('os').text(); + var guestversion = $(this).find('guestversion').text(); var cpuavg = $(this).find('cpuavg').text(); + var curmem = $(this).find('curmem').text(); + var maxmem = $(this).find('maxmem').text(); + + var mempercent = Math.round( (curmem*100) / maxmem ); name = name.replace(" ", "_"); name = name.replace(".", "_"); @@ -106,6 +111,10 @@ var vm = $(id); + if (guestversion != '') { + os += ' Guest Tools: ' + guestversion; + } + if (state == "Running") { vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')"); vm.find('.network').show(); @@ -121,7 +130,10 @@ vm.find('.cpu_graph').show(); vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg); vm.find('.cpu_graph').attr('title', cpuavg + '%'); + vm.find('.mem_graph').show(); + vm.find('.mem_graph').attr('src', 'usagebar.php?usage=' + mempercent); + vm.find('.mem_graph').attr('title', curmem + ' / ' + maxmem + ' MB' ); } else { if (state == "Halted") { vm.find('.state').css("background-image", "url('gfx/vps_topred.png')"); @@ -270,8 +282,8 @@ - - + --> -
  + +