You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What terminal(s) are you running bottom on that are experiencing the problem?
Konsole 24.05.2 (ssh from Arch Linux)
What filesystem(s) are you using?
NTFS
What version of bottom are you running?
0.10.1
How did you install bottom?
cargo install --locked, Rust 1.80.0.
Describe the issue
The full command (P) toggle for the process widget does not work on Windows.
What is the expected behaviour?
P toggles showing the full command.
What is the actual behaviour?
Toggling P still displays the name; the full command is not displayed.
How can we reproduce this?
Run btm (no config required to repro.).
Open the process widget and press P.
Observe that the only change is "Name(n)" -> "Command(n)" in the table header, but no entries below in that column change.
Additional information
This is a regression in 0.10.0, Windows-only. Bisects to sysinfo 0.30 (via f07994e).
Setting the Process::cmdUpdateKind appears to fix it:
diff --git a/src/data_collection.rs b/src/data_collection.rs
index d37931f..3341bf5 100644
--- a/src/data_collection.rs+++ b/src/data_collection.rs@@ -15,6 +15,7 @@ pub mod processes;
pub mod temperature;
use std::time::{Duration, Instant};
+use sysinfo::{ProcessRefreshKind, UpdateKind};
#[cfg(any(target_os = "linux", feature = "gpu"))]
use hashbrown::HashMap;
@@ -284,7 +285,14 @@ impl DataCollector {
#[cfg(not(target_os = "linux"))]
{
if self.widgets_to_harvest.use_proc {
- self.sys.system.refresh_processes();+ self.sys.system.refresh_processes_specifics(+ ProcessRefreshKind::new()+ .with_memory()+ .with_cpu()+ .with_disk_usage()+ .with_exe(UpdateKind::OnlyIfNotSet)+ .with_cmd(UpdateKind::OnlyIfNotSet),+ );
// For Windows, sysinfo also handles the users list.
#[cfg(target_os = "windows")]
There might be other ProcessRefreshKind calls missing above; maybe ProcessRefreshKind::everything() would be better? It's also possible that bottom is missing some UpdateKinds for other things too.
The text was updated successfully, but these errors were encountered:
Checklist
What operating system and version are you using?
Windows 10 22H2
What architecture are you using?
x86_64/AMD64
What terminal(s) are you running bottom on that are experiencing the problem?
Konsole 24.05.2 (ssh from Arch Linux)
What filesystem(s) are you using?
NTFS
What version of bottom are you running?
0.10.1
How did you install bottom?
cargo install --locked
, Rust 1.80.0.Describe the issue
The full command (
P
) toggle for the process widget does not work on Windows.What is the expected behaviour?
P
toggles showing the full command.What is the actual behaviour?
Toggling
P
still displays the name; the full command is not displayed.How can we reproduce this?
btm
(no config required to repro.).P
.Additional information
This is a regression in 0.10.0, Windows-only. Bisects to sysinfo 0.30 (via f07994e).
Setting the
Process::cmd
UpdateKind
appears to fix it:There might be other
ProcessRefreshKind
calls missing above; maybeProcessRefreshKind::everything()
would be better? It's also possible that bottom is missing someUpdateKind
s for other things too.The text was updated successfully, but these errors were encountered: