mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Update lib.rs
This commit is contained in:
parent
90c1b1823f
commit
11c8a25c1c
@ -373,7 +373,7 @@ fn use_bin_packing_to_balance_cpu() -> PyResult<bool> {
|
||||
let config = lqos_config::load_config().unwrap();
|
||||
Ok(config.queues.use_binpacking)
|
||||
}
|
||||
https://github.com/LibreQoE/LibreQoS/pull/564
|
||||
|
||||
#[pyfunction]
|
||||
fn monitor_mode_only() -> PyResult<bool> {
|
||||
let config = lqos_config::load_config().unwrap();
|
||||
@ -701,4 +701,4 @@ pub fn get_libreqos_directory() -> PyResult<String> {
|
||||
#[pyfunction]
|
||||
pub fn is_network_flat() -> PyResult<bool> {
|
||||
Ok(lqos_config::NetworkJson::load().unwrap().get_nodes_when_ready().len() == 1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user