updates `egui/eframe` -> `0.24.1` -> `0.26.2`

fixes non-responding nodes not being sorted correctly by ping ms
This commit is contained in:
hinto.janai 2024-03-18 16:49:58 -04:00
parent ba386eaad2
commit 6ad66d16fb
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
5 changed files with 1538 additions and 284 deletions

View file

@ -6,6 +6,9 @@
- Removed `bunkernet.ddns.net`
- Removed `ru.poiuty.com`
## Fixes
- Non-responding nodes not being sorted by ping speed
## Bundled Versions
* [`P2Pool v3.10`](https://github.com/SChernykh/p2pool/releases/tag/v3.10)
* [`XMRig v6.21.1`](https://github.com/xmrig/xmrig/releases/tag/v6.21.1)

1806
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "gupax"
version = "1.3.5"
version = "1.3.6"
authors = ["hinto-janai <hinto.janai@protonmail.com>"]
description = "GUI for P2Pool+XMRig"
documentation = "https://github.com/hinto-janai/gupax"
@ -33,14 +33,14 @@ benri = "0.1.12"
bytes = "1.4.0"
dirs = "5.0.1"
#--------------------------------------------------------------------------------
egui = "0.24.1"
egui_extras = { version = "0.24.1", features = ["image"] }
egui = "0.26.2"
egui_extras = { version = "0.26.2", features = ["image"] }
## 2023-12-28: https://github.com/hinto-janai/gupax/issues/68
##
## 2024-03-18: Both `glow` and `wgpu` seem to crash:
## <https://github.com/hinto-janai/gupax/issues/84>
## `wgpu` seems to crash on less computers though so...
eframe = { version = "0.24.1", default-features = false, features = ["wgpu"] }
eframe = { version = "0.26.2", features = ["wgpu"] }
## 2023-02-06: The below gets fixed by using the [wgpu] backend instead of [glow]
## It also fixes crashes on CPU-based graphics. Only used for Windows.

View file

@ -17,7 +17,7 @@
pub const GUPAX_VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION")); // e.g: v1.0.0
pub const P2POOL_VERSION: &str = "v3.10";
pub const XMRIG_VERSION: &str = "v6.21.0";
pub const XMRIG_VERSION: &str = "v6.21.1";
pub const COMMIT: &str = env!("COMMIT"); // set in build.rs
// e.g: Gupax_v1_0_0
// Would have been [Gupax_v1.0.0] but P2Pool truncates everything after [.]

View file

@ -392,7 +392,8 @@ impl Ping {
handle.await?;
}
let node_vec = std::mem::take(&mut *lock!(node_vec));
let mut node_vec = std::mem::take(&mut *lock!(node_vec));
node_vec.sort_by(|a, b| a.ms.cmp(&b.ms));
let fastest_info = format!("Fastest node: {}ms ... {}", node_vec[0].ms, node_vec[0].ip);
let info = "Cleaning up connections".to_string();