--- misc/xenconsole/index.php 2012/12/09 19:57:00 1895 +++ misc/xenconsole/index.php 2012/12/10 12:20:57 1896 @@ -98,6 +98,10 @@ var session = $(this).find('session').text(); var os = $(this).find('os').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(".", "_"); @@ -121,7 +125,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')");