Skip to content

Commit

Permalink
change: small gpu proc changes (#1325)
Browse files Browse the repository at this point in the history
* other: use consistent casing with Mem/Mem% in processes for GPU cols

* other: remove mem check for GPU enable check
  • Loading branch information
ClementTsang authored Nov 20, 2023
1 parent e4a6e75 commit 10a37c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ pub fn build_app(
use_cpu: used_widget_set.get(&Cpu).is_some() || used_widget_set.get(&BasicCpu).is_some(),
use_mem,
use_cache: use_mem && get_enable_cache_memory(matches, config),
use_gpu: use_mem && get_enable_gpu(matches, config),
use_gpu: get_enable_gpu(matches, config),
use_net: used_widget_set.get(&Net).is_some() || used_widget_set.get(&BasicNet).is_some(),
use_proc: used_widget_set.get(&Proc).is_some(),
use_disk: used_widget_set.get(&Disk).is_some(),
Expand Down
8 changes: 4 additions & 4 deletions src/widgets/process_table/proc_widget_column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ impl ColumnHeader for ProcColumn {
ProcColumn::User => "User",
ProcColumn::Time => "Time",
#[cfg(feature = "gpu")]
ProcColumn::GpuMem => "GMEM",
ProcColumn::GpuMem => "GMem",
#[cfg(feature = "gpu")]
ProcColumn::GpuMemPercent => "GMEM%",
ProcColumn::GpuMemPercent => "GMem%",
#[cfg(feature = "gpu")]
ProcColumn::GpuUtilPercent => "GPU%",
}
Expand All @@ -117,9 +117,9 @@ impl ColumnHeader for ProcColumn {
ProcColumn::User => "User",
ProcColumn::Time => "Time",
#[cfg(feature = "gpu")]
ProcColumn::GpuMem => "GMEM",
ProcColumn::GpuMem => "GMem",
#[cfg(feature = "gpu")]
ProcColumn::GpuMemPercent => "GMEM%",
ProcColumn::GpuMemPercent => "GMem%",
#[cfg(feature = "gpu")]
ProcColumn::GpuUtilPercent => "GPU%",
}
Expand Down

0 comments on commit 10a37c2

Please sign in to comment.