mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Add minimums to calculated min/max speeds.
This commit is contained in:
parent
d1b9b4e02a
commit
0851a02084
@ -77,10 +77,10 @@ pub async fn build_flat_network(
|
|||||||
mac: device.identification.mac.clone().unwrap_or("".to_string()),
|
mac: device.identification.mac.clone().unwrap_or("".to_string()),
|
||||||
ipv4: dev.ipv4_list(),
|
ipv4: dev.ipv4_list(),
|
||||||
ipv6: dev.ipv6_list(),
|
ipv6: dev.ipv6_list(),
|
||||||
download_min,
|
download_min: u64::max(2, download_min),
|
||||||
download_max: download_max as u64,
|
download_max: u64::max(3, download_max as u64),
|
||||||
upload_min,
|
upload_min: u64::max(2, upload_min),
|
||||||
upload_max: upload_max as u64,
|
upload_max: u64::max(3, upload_max as u64),
|
||||||
comment: "".to_string(),
|
comment: "".to_string(),
|
||||||
};
|
};
|
||||||
shaped_devices.push(sd);
|
shaped_devices.push(sd);
|
||||||
|
@ -130,10 +130,10 @@ fn traverse(
|
|||||||
mac: device.mac.clone(),
|
mac: device.mac.clone(),
|
||||||
ipv4: device.ipv4_list(),
|
ipv4: device.ipv4_list(),
|
||||||
ipv6: device.ipv6_list(),
|
ipv6: device.ipv6_list(),
|
||||||
download_min,
|
download_min: u64::max(2, download_min),
|
||||||
download_max,
|
download_max: u64::max(3, download_max),
|
||||||
upload_min,
|
upload_min: u64::max(2, upload_min),
|
||||||
upload_max,
|
upload_max: u64::max(3, upload_max),
|
||||||
comment: "Infrastructure Entry".to_string(),
|
comment: "Infrastructure Entry".to_string(),
|
||||||
};
|
};
|
||||||
shaped_devices.push(sd);
|
shaped_devices.push(sd);
|
||||||
|
Loading…
Reference in New Issue
Block a user