Skip to content

Commit 63aab3a

Browse files
committed
Fix process resource
1 parent 9752e11 commit 63aab3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn get_task_list() -> Vec<ProcessInfo>
1616
for (pid, process) in s.processes() {
1717
let mut p = ProcessInfo::new();
1818
p.pid = pid.as_u32();
19-
p.name = format!("{}", process.name().display());
19+
p.name = process.name().to_string_lossy().to_string();
2020
p.cmdline = format!("{:?}", process.cmd());
2121
result.push(p);
2222
}

0 commit comments

Comments
 (0)