mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Further clean up the single-queue error message.
This commit is contained in:
parent
d2a3a89494
commit
2098baa38b
@ -103,7 +103,7 @@ fn sorted_txq_xps_cpus(interface: &str) -> Result<Vec<String>> {
|
||||
let mut result = Vec::new();
|
||||
let paths =
|
||||
std::fs::read_dir(&format!("/sys/class/net/{interface}/queues/"))
|
||||
.map_err(|_| anyhow::anyhow!("/sys/class/net/interface/queues does not exist. Does this card only support one queue (not supported)?"))?;
|
||||
.map_err(|_| anyhow::anyhow!("/sys/class/net/{interface}/queues/ does not exist. Does this card only support one queue (not supported)?"))?;
|
||||
for path in paths {
|
||||
if let Ok(path) = &path {
|
||||
if path.path().is_dir() {
|
||||
|
Loading…
Reference in New Issue
Block a user