mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-08-23 03:46:29 +00:00
start fix
This commit is contained in:
@@ -178,7 +178,7 @@ pub struct ProcTableConfig {
|
||||
pub sort_order: Option<SortOrder>,
|
||||
}
|
||||
|
||||
/// A hacky workaround for now.
|
||||
/// FIXME: A hacky workaround for now, this is temporary. Switch back to `ProcColumn` later!
|
||||
#[derive(PartialEq, Eq, Hash, Clone, Copy, Debug)]
|
||||
pub enum ProcWidgetColumn {
|
||||
PidOrCount,
|
||||
@@ -202,8 +202,6 @@ pub enum ProcWidgetColumn {
|
||||
GpuUtil,
|
||||
}
|
||||
|
||||
// This is temporary. Switch back to `ProcColumn` later!
|
||||
|
||||
pub struct ProcWidgetState {
|
||||
pub(crate) mode: ProcWidgetMode,
|
||||
|
||||
|
||||
@@ -207,7 +207,8 @@ impl ProcColumn {
|
||||
pub fn parse_column_name(name: &str) -> Option<Self> {
|
||||
match name.to_lowercase().as_str() {
|
||||
"cpu%" => Some(ProcColumn::CpuPercent),
|
||||
"mem" | "mem%" | "memory" | "memory%" => Some(ProcColumn::MemPercent),
|
||||
"mem%" | "memory%" => Some(ProcColumn::MemPercent),
|
||||
"mem" | "memory" => Some(ProcColumn::MemValue),
|
||||
"virt" | "virtual" | "virtmem" | "virtual memory" => Some(ProcColumn::VirtualMem),
|
||||
"pid" => Some(ProcColumn::Pid),
|
||||
"count" => Some(ProcColumn::Count),
|
||||
|
||||
Reference in New Issue
Block a user