mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-09-11 11:46:59 +03:00
other: revert disk usage change for now (#962)
This is a temp change, this commit will be reverted after 0.7.1 comes out.
This commit is contained in:
parent
d62bdc5cab
commit
d3661c2320
10
src/app.rs
10
src/app.rs
@ -1219,12 +1219,6 @@ impl App {
|
||||
{
|
||||
proc_widget_state.select_column(ProcWidget::PID_OR_COUNT);
|
||||
}
|
||||
} else if let Some(disk) = self
|
||||
.disk_state
|
||||
.get_mut_widget_state(self.current_widget.widget_id)
|
||||
{
|
||||
disk.table.set_sort_index(5);
|
||||
disk.force_data_update();
|
||||
}
|
||||
}
|
||||
'P' => {
|
||||
@ -1308,7 +1302,7 @@ impl App {
|
||||
.disk_state
|
||||
.get_mut_widget_state(self.current_widget.widget_id)
|
||||
{
|
||||
disk.table.set_sort_index(6);
|
||||
disk.table.set_sort_index(5);
|
||||
disk.force_data_update();
|
||||
}
|
||||
}
|
||||
@ -1317,7 +1311,7 @@ impl App {
|
||||
.disk_state
|
||||
.get_mut_widget_state(self.current_widget.widget_id)
|
||||
{
|
||||
disk.table.set_sort_index(7);
|
||||
disk.table.set_sort_index(6);
|
||||
disk.force_data_update();
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ impl ColumnHeader for DiskWidgetColumn {
|
||||
DiskWidgetColumn::Mount => "Mount(m)",
|
||||
DiskWidgetColumn::Used => "Used(u)",
|
||||
DiskWidgetColumn::Free => "Free(n)",
|
||||
DiskWidgetColumn::UsedPercent => "Used%(p)",
|
||||
DiskWidgetColumn::UsedPercent => "Used(u)",
|
||||
DiskWidgetColumn::FreePercent => "Free%",
|
||||
DiskWidgetColumn::Total => "Total(t)",
|
||||
DiskWidgetColumn::IoRead => "R/s(r)",
|
||||
@ -213,10 +213,9 @@ impl DiskTableWidget {
|
||||
let columns = [
|
||||
SortColumn::soft(DiskWidgetColumn::Disk, Some(0.2)),
|
||||
SortColumn::soft(DiskWidgetColumn::Mount, Some(0.2)),
|
||||
SortColumn::hard(DiskWidgetColumn::Used, 8).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::UsedPercent, 9).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::Free, 8).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::Total, 9).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::UsedPercent, 9).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::IoRead, 10).default_descending(),
|
||||
SortColumn::hard(DiskWidgetColumn::IoWrite, 11).default_descending(),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user