--- misc/xenconsole/index.php 2013/07/23 21:03:32 2030 +++ misc/xenconsole/index.php 2013/11/07 21:27:15 2069 @@ -83,8 +83,7 @@ openConsole(conurl,session,name); }); - $('#server_memory_usage').progressbar( ); - $('#server_cpu_usage').progressbar( ); + $('.bar').progressbar( ); $('#logo').click( function() { refreshData(); @@ -283,13 +282,15 @@ } vm.find('.os').text(' - ' + os); - + cpuavg = cpuavg * 1; vm.find('.cpu_graph').show(); - vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg); + //vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg); + vm.find('.cpu_graph').progressbar( "value", 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('src', 'usagebar.php?usage=' + mempercent); + vm.find('.mem_graph').progressbar( "value", mempercent ); vm.find('.mem_graph').attr('title', curmem + ' / ' + maxmem + ' MB' ); } else { if (state == "Halted") { @@ -417,6 +418,12 @@ background: #61B4F3; } +.ui-progressbar { + border-style:solid; + border-width:1px; + border-color: #666666; +} + .bar { width: 102px; height: 16px; @@ -519,7 +526,8 @@