Исправлен парсер tc-хитов для строк match+success
This commit is contained in:
@@ -552,9 +552,12 @@ fn parse_tc_filter_hits(raw: &str) -> BTreeMap<String, u64> {
|
||||
let mut current_ip: Option<String> = None;
|
||||
for line in raw.lines() {
|
||||
let t = line.trim();
|
||||
|
||||
if t.contains("match ") {
|
||||
current_ip = extract_tc_match_ip(t);
|
||||
} else if t.starts_with("Sent ") {
|
||||
}
|
||||
|
||||
if t.starts_with("Sent ") {
|
||||
if let Some(ip) = current_ip.clone() {
|
||||
let hits = parse_sent_packets(t).unwrap_or(0);
|
||||
out.insert(ip, hits);
|
||||
|
||||
Reference in New Issue
Block a user