Skip to content

Commit

Permalink
Remove non-used fields
Browse files Browse the repository at this point in the history
  • Loading branch information
edmocosta committed Jun 27, 2024
1 parent 6fb0eda commit 0d5771f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/cli/commands/tui/node/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ impl ChartDataPoint for JvmMemNonHeapDataPoint {

pub struct JvmMemHeapDataPoint {
pub timestamp: i64,
pub heap_committed_in_bytes: i64,
pub heap_max_in_bytes: i64,
pub heap_used_in_bytes: i64,
pub heap_used_percent: i64,
}

impl ChartDataPoint for JvmMemHeapDataPoint {
Expand Down Expand Up @@ -122,10 +120,8 @@ impl NodeState {
fn update_jvm_charts_states(&mut self, node_stats: &NodeStats) {
self.chart_jvm_heap_state.push(JvmMemHeapDataPoint {
timestamp: now_local_unix_timestamp(),
heap_committed_in_bytes: node_stats.jvm.mem.heap_committed_in_bytes,
heap_max_in_bytes: node_stats.jvm.mem.heap_max_in_bytes,
heap_used_in_bytes: node_stats.jvm.mem.heap_used_in_bytes,
heap_used_percent: node_stats.jvm.mem.heap_used_percent,
});

self.chart_jvm_non_heap_state.push(JvmMemNonHeapDataPoint {
Expand Down
2 changes: 0 additions & 2 deletions src/cli/commands/tui/pipelines/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pub struct Data<'a, T> {

pub struct VertexEdge<'a> {
pub vertex_id: &'a str,
pub r#type: String,
pub when: Option<bool>,
}

Expand Down Expand Up @@ -51,7 +50,6 @@ impl<'a> PipelineGraph<'a> {
.unwrap()
.push(VertexEdge {
vertex_id: edge.to.as_str(),
r#type: edge.r#type.to_string(),
when: edge.when,
});

Expand Down
2 changes: 0 additions & 2 deletions src/cli/commands/tui/pipelines/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub const PIPELINE_VERTEX_LIST: usize = 0;
pub const PIPELINE_VERTEX_VIEW: usize = 1;

pub struct PipelineTableItem {
pub id: String,
pub name: String,
pub graph: GraphDefinition,
}
Expand All @@ -23,7 +22,6 @@ impl StatefulTable<PipelineTableItem> {
let mut new_items = Vec::with_capacity(pipelines.len());
for (name, pipeline_info) in pipelines {
let new_item = PipelineTableItem {
id: pipeline_info.ephemeral_id.to_string(),
name: name.to_string(),
graph: pipeline_info.graph.graph.clone(),
};
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/tui/threads/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl StatefulTable<ThreadTableItem> {
.reverse()
}
});

let new_selected_index = if let Some(selected) = self.selected_item() {
// Not optimal, but should work for now to keep the selected line
// selected after an update with order changes.
Expand Down

0 comments on commit 0d5771f

Please sign in to comment.