Average Server Percent Used: NaN% Error when server startup is in progress (fixes #4214) (#4240)

* Fix lz4 library incompatibility in kafka-indexing-service extension #3266

* Bumped Kafka version to 0.10.2.0 for : Fix lz4 library incompatibility in kafka-indexing-service extension #3266

* Replaced Lists.newArrayList() with Collections.singletonList() For Fix lz4 library incompatibility in kafka-indexing-service extension #4115

* Fixed: Average Server Percent Used: NaN% Error when server startup is in progress #4214
This commit is contained in:
satishbhor 2017-05-12 12:26:17 +05:30 committed by Gian Merlino
parent 1ebfa22955
commit 5e6539fec6
1 changed files with 6 additions and 2 deletions

View File

@ -53,8 +53,12 @@ $(document).ready(function() {
return ret;
}());
var avg = serverTable.getColTotal('Server percentUsed') / serverTable.getNumRows();
$('#avg_server_metric').html('Average Server Percent Used: ' + avg + '%');
if (!isNaN(avg)) {
$('#avg_server_metric').html('Average Server Percent Used: ' + avg + '%');
}else{
$('.loading').html('Server is still starting...Please try after few minutes.');
$('.loading').show()
}
serverTable.toHTMLTable($('#servers'));
segmentTable.toHTMLTable($('#segments'));
}