diff --git a/Cargo.lock b/Cargo.lock index 736b653..47b9635 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2208,7 +2208,7 @@ dependencies = [ [[package]] name = "gupax" -version = "1.3.1" +version = "1.3.2" dependencies = [ "anyhow", "arti-client", diff --git a/Cargo.toml b/Cargo.toml index bc9863b..f953d06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gupax" -version = "1.3.1" +version = "1.3.2" authors = ["hinto-janai "] description = "GUI for P2Pool+XMRig" documentation = "https://github.com/hinto-janai/gupax" diff --git a/src/constants.rs b/src/constants.rs index 3c8cfc3..5f30fa7 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -16,7 +16,7 @@ // along with this program. If not, see . pub const GUPAX_VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION")); // e.g: v1.0.0 -pub const P2POOL_VERSION: &str = "v3.5"; +pub const P2POOL_VERSION: &str = "v3.7"; pub const XMRIG_VERSION: &str = "v6.20.0"; pub const COMMIT: &str = include_str!("../.git/refs/heads/main"); // e.g: Gupax_v1_0_0 diff --git a/src/disk.rs b/src/disk.rs index f7c53b2..bc965c9 100644 --- a/src/disk.rs +++ b/src/disk.rs @@ -1215,6 +1215,7 @@ mod test { absolute_xmrig_path = "/home/hinto/xmrig/xmrig" selected_width = 1280 selected_height = 960 + selected_scale = 0.0 tab = "About" ratio = "Width" diff --git a/src/node.rs b/src/node.rs index 5becb21..817da0a 100644 --- a/src/node.rs +++ b/src/node.rs @@ -57,7 +57,7 @@ pub const REMOTE_NODES: [(&str, &str, &str, &str); 19] = [ ]; pub const REMOTE_NODE_LENGTH: usize = REMOTE_NODES.len(); -pub const REMOTE_NODE_MAX_CHARS: usize = 24; // monero1.heitechsoft.com +pub const REMOTE_NODE_MAX_CHARS: usize = 25; // monero1.heitechsoft.com pub struct RemoteNode { pub ip: &'static str, @@ -211,7 +211,7 @@ pub fn format_ip_location(og_ip: &str, extra_space: bool) -> String { } pub fn format_ip(ip: &str) -> String { - format!("{: >28}", ip) + format!("{ip: >25}") } //---------------------------------------------------------------------------------------------------- Node data @@ -413,7 +413,7 @@ mod test { #[test] fn spacing() { for (ip, _, _, _) in crate::REMOTE_NODES { - assert!(crate::format_ip(ip).len() == crate::REMOTE_NODE_MAX_CHARS); + assert!(crate::format_ip(ip).len() <= crate::REMOTE_NODE_MAX_CHARS); } }