A handful of renaming LTS to Insight

This commit is contained in:
Herbert Wolverson
2024-11-21 11:27:52 -06:00
parent d1fd0b2f5b
commit 8c010695b1
9 changed files with 12 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ enum Commands {
Sanity,
/// Gather Support Info and Save it to /tmp
Gather,
/// Gather Support Info and Send it to the LibreQoS Team. Note that LTS users and donors get priority, we don't guarantee that we'll help anyone else. Please make sure you've tried Zulip first ( https://chat.libreqos.io/ )
/// Gather Support Info and Send it to the LibreQoS Team. Note that Insight users and donors get priority, we don't guarantee that we'll help anyone else. Please make sure you've tried Zulip first ( https://chat.libreqos.io/ )
Submit,
/// Summarize the contents of a support dump
Summarize {

View File

@@ -25,7 +25,7 @@ pub mod units;
/// XDP compatible IP Address
pub use xdp_ip_address::XdpIpAddress;
/// LTS2 standard hasher for strings
/// Insight standard hasher for strings
pub fn hash_to_i64(text: &str) -> i64 {
use std::hash::{DefaultHasher, Hasher};
let mut hasher = DefaultHasher::new();

View File

@@ -145,9 +145,9 @@ fn main() -> Result<()> {
// Spawn tracking sub-systems
if let Err(e) = lts2_sys::start_lts2() {
error!("Failed to start LTS2: {:?}", e);
error!("Failed to start Insight: {:?}", e);
} else {
info!("LTS2 client started successfully");
info!("Insight client started successfully");
}
let _blackboard_tx = blackboard::start_blackboard();
let long_term_stats_tx = start_long_term_stats();

View File

@@ -58,8 +58,8 @@ export const DashletMenu = [
{ name: "Tree Nodes At Capacity", tag: "treeCapacity", size: 6 },
{ name: "Network Tree Sankey", tag: "networkTreeSankey", size: 6 },
{ name: "Round-Trip Time Histogram 3D", tag: "rttHistogram3D", size: 12 },
{ name: "(LTS) Shaper Status", tag: "ltsShaperStatus", size: 3 },
{ name: "(LTS) Last 24 Hours", tag: "ltsLast24", size: 3}
{ name: "(Insight) Shaper Status", tag: "ltsShaperStatus", size: 3 },
{ name: "(Insight) Last 24 Hours", tag: "ltsLast24", size: 3}
];
export function widgetFactory(widgetName, count) {

View File

@@ -9,7 +9,7 @@ export class LtsLast24Hours extends BaseDashlet {
}
title() {
return "Last 24 Hours Throughput (LTS)";
return "Last 24 Hours Throughput (Insight)";
}
canBeSlowedDown() {

View File

@@ -8,7 +8,7 @@ export class LtsShaperStatus extends BaseDashlet {
}
title() {
return "Shaper Status (LTS)";
return "Shaper Status (Insight)";
}
canBeSlowedDown() {

View File

@@ -1,5 +1,5 @@
//! Provides a helpful wrapper to Reqwest with the
//! appropriate settings enabled for the LTS2 API.
//! appropriate settings enabled for the Insight API.
use axum::http::StatusCode;
use tracing::error;

View File

@@ -286,10 +286,10 @@
<!-- Long-Term Stats Tab -->
<div class="tab-pane fade" id="v-pills-lts" role="tabpanel" aria-labelledby="v-pills-lts-tab">
<h2><i class="fa fa-line-chart"></i> Long-Term Stats Settings</h2>
<h2><i class="fa fa-line-chart"></i> Insight Settings</h2>
<table class="table table-bordered">
<tr>
<td><label for="bindEnableLTS">Send Statistics to Long-Term Stats: </label></td>
<td><label for="bindEnableLTS">Send Statistics to Insight: </label></td>
<td><input type="checkbox" id="bindEnableLTS"/></td>
</tr>
<tr>

View File

@@ -373,7 +373,7 @@ fn submit_throughput_stats(
let lts2_format: Vec<_> = json.iter().map(|(k,v)| v.to_lts2(&k)).collect();
if let Ok(bytes) = serde_cbor::to_vec(&lts2_format) {
if let Err(e) = lts2_sys::network_tree(now, &bytes) {
warn!("Error sending message to LTS2. {e:?}");
warn!("Error sending message to Insight. {e:?}");
}
}
}