Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Update filter cache stats for latest stats API
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Case committed Jun 15, 2013
1 parent e29e90d commit 8b1b426
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/charts/bigdesk_charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ bigdesk_charts.indicesCacheSize = {
return stats.map(function(snapshot){
return {
timestamp: +snapshot.id,
value: +snapshot.node.indices.cache.filter_size_in_bytes
value: +snapshot.node.indices.filter_cache.memory_size_in_bytes
}
})
}
Expand Down Expand Up @@ -847,7 +847,7 @@ bigdesk_charts.indicesCacheEvictions = {
return stats.map(function(snapshot){
return {
timestamp: +snapshot.id,
value: +snapshot.node.indices.cache.filter_evictions
value: +snapshot.node.indices.filter_cache.evictions
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions js/views/SelectedClusterNodeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ var SelectedClusterNodeView = Backbone.View.extend({

try { chart_indicesCacheSize.animate(animatedCharts).update(indices_cache_field_size, indices_cache_filter_size); } catch (ignore) {}

if (stats_the_latest.node && stats_the_latest.node.indices && stats_the_latest.node.indices.cache) {
$("#indices_filter_cache_size").text(stats_the_latest.node.indices.cache.filter_size);
if (stats_the_latest.node && stats_the_latest.node.indices && stats_the_latest.node.indices.filter_cache) {
$("#indices_filter_cache_size").text(stats_the_latest.node.indices.filter_cache.memory_size);
$("#indices_field_cache_size").text(stats_the_latest.node.indices.fielddata.memory_size);
} else {
$("#indices_filter_cache_size").text("n/a");
Expand All @@ -608,7 +608,7 @@ var SelectedClusterNodeView = Backbone.View.extend({

try { chart_indicesCacheEvictions.animate(animatedCharts).update(indices_cache_field_evictions, indices_cache_filter_evictions); } catch (ignore) {}

$("#indices_filter_cache_evictions").text(stats_the_latest.node.indices.cache.filter_evictions);
$("#indices_filter_cache_evictions").text(stats_the_latest.node.indices.filter_cache.evictions);
$("#indices_field_cache_evictions").text(stats_the_latest.node.indices.fielddata.evictions);

}
Expand Down

0 comments on commit 8b1b426

Please sign in to comment.