mirror of https://github.com/apache/lucene.git
SOLR-4289: Admin UI - JVM memory bar - dark grey "used" width is too small (simplified)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1431085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44597fa290
commit
de8bfe6dd4
|
@ -1692,7 +1692,7 @@ Bug Fixes
|
|||
fetchMailsSince was not specified. (Max Lynch via James Dyer)
|
||||
|
||||
* SOLR-4289: Admin UI - JVM memory bar - dark grey "used" width is too small
|
||||
(steffkes)
|
||||
(steffkes, elyograg)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -36,15 +36,13 @@ var generate_bar = function( bar_container, bar_data, convert_label_values )
|
|||
$( '.bar-max.val', bar_holder ).text( bar_data['max'] );
|
||||
|
||||
bar_level++;
|
||||
var total_calc = bar_data['total']/bar_data['max'];
|
||||
$( '.bar-total.bar', bar_holder ).width( new String( total_calc*100 ) + '%' );
|
||||
$( '.bar-total.bar', bar_holder ).width( new String( (bar_data['total']/bar_data['max'])*100 ) + '%' );
|
||||
$( '.bar-total.val', bar_holder ).text( bar_data['total'] );
|
||||
|
||||
if( bar_data['used'] )
|
||||
{
|
||||
bar_level++;
|
||||
var used_calc = (bar_data['used']/bar_data['max'])/total_calc;
|
||||
$( '.bar-used.bar', bar_holder ).width( new String( used_calc*100 ) + '%' );
|
||||
$( '.bar-used.bar', bar_holder ).width( new String( (bar_data['used']/bar_data['total'])*100 ) + '%' );
|
||||
$( '.bar-used.val', bar_holder ).text( bar_data['used'] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue