mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Update lib.rs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user