mirror of https://github.com/apache/lucene.git
SOLR-7686 Fix dashboard on Windows - don't show load average
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1706796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4a599904f
commit
6098ca73a3
|
@ -22,11 +22,13 @@ solrAdminApp.controller('IndexController', function($scope, System, Cores, Const
|
||||||
$scope.system = data;
|
$scope.system = data;
|
||||||
|
|
||||||
// load average
|
// load average
|
||||||
load_average = ( data.system.uptime || '' ).match( /load averages?: (\d+[.,]\d\d),? (\d+[.,]\d\d),? (\d+[.,]\d\d)/ );
|
var load_average = ( data.system.uptime || '' ).match( /load averages?: (\d+[.,]\d\d),? (\d+[.,]\d\d),? (\d+[.,]\d\d)/ );
|
||||||
for (var i=0;i<2;i++) {
|
if (load_average) {
|
||||||
load_average[i]=load_average[i].replace(",","."); // for European users
|
for (var i=0;i<2;i++) {
|
||||||
|
load_average[i]=load_average[i].replace(",","."); // for European users
|
||||||
|
}
|
||||||
|
$scope.load_average = load_average.slice(1);
|
||||||
}
|
}
|
||||||
$scope.load_average = load_average.slice(1);
|
|
||||||
|
|
||||||
// physical memory
|
// physical memory
|
||||||
var memoryMax = parse_memory_value(data.system.totalPhysicalMemorySize);
|
var memoryMax = parse_memory_value(data.system.totalPhysicalMemorySize);
|
||||||
|
|
Loading…
Reference in New Issue