update README banner and fix rust 1.72 clippy lints
|
|
@ -159,7 +159,7 @@ pkgin install sniffnet
|
|||
</details>
|
||||
<details>
|
||||
|
||||
<summary>on Tiny Core Linux x86_64 port (a.k.a. Core Pure 64)</summary>
|
||||
<summary>on Tiny Core Linux</summary>
|
||||
|
||||
You can install Sniffnet from the official repository with:
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 684 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
BIN
resources/repository/header_repository_1.png
Normal file
|
After Width: | Height: | Size: 181 KiB |
|
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 1 MiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
BIN
resources/repository/logo_repository_1.png
Normal file
|
After Width: | Height: | Size: 191 KiB |
|
|
@ -60,7 +60,7 @@ pub fn update_charts_data(runtime_data: &mut RunTimeData, traffic_chart: &mut Tr
|
|||
/// Finds the minimum y value to be displayed in chart
|
||||
fn get_min(deque: &VecDeque<(u32, i64)>) -> i64 {
|
||||
let mut min = 0;
|
||||
for (_, x) in deque.iter() {
|
||||
for (_, x) in deque {
|
||||
if *x < min {
|
||||
min = *x;
|
||||
}
|
||||
|
|
@ -71,7 +71,7 @@ fn get_min(deque: &VecDeque<(u32, i64)>) -> i64 {
|
|||
/// Finds the maximum y value to be displayed in chart
|
||||
fn get_max(deque: &VecDeque<(u32, i64)>) -> i64 {
|
||||
let mut max = 0;
|
||||
for (_, x) in deque.iter() {
|
||||
for (_, x) in deque {
|
||||
if *x > max {
|
||||
max = *x;
|
||||
}
|
||||
|
|
|
|||