This commit is contained in:
hinto.janai 2023-10-22 18:18:30 -04:00
parent 2af44ac40f
commit 1eff1b0780
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
5 changed files with 7 additions and 6 deletions

2
Cargo.lock generated
View file

@ -2208,7 +2208,7 @@ dependencies = [
[[package]] [[package]]
name = "gupax" name = "gupax"
version = "1.3.1" version = "1.3.2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"arti-client", "arti-client",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "gupax" name = "gupax"
version = "1.3.1" version = "1.3.2"
authors = ["hinto-janai <hinto.janai@protonmail.com>"] authors = ["hinto-janai <hinto.janai@protonmail.com>"]
description = "GUI for P2Pool+XMRig" description = "GUI for P2Pool+XMRig"
documentation = "https://github.com/hinto-janai/gupax" documentation = "https://github.com/hinto-janai/gupax"

View file

@ -16,7 +16,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
pub const GUPAX_VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION")); // e.g: v1.0.0 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 XMRIG_VERSION: &str = "v6.20.0";
pub const COMMIT: &str = include_str!("../.git/refs/heads/main"); pub const COMMIT: &str = include_str!("../.git/refs/heads/main");
// e.g: Gupax_v1_0_0 // e.g: Gupax_v1_0_0

View file

@ -1215,6 +1215,7 @@ mod test {
absolute_xmrig_path = "/home/hinto/xmrig/xmrig" absolute_xmrig_path = "/home/hinto/xmrig/xmrig"
selected_width = 1280 selected_width = 1280
selected_height = 960 selected_height = 960
selected_scale = 0.0
tab = "About" tab = "About"
ratio = "Width" ratio = "Width"

View file

@ -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_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 struct RemoteNode {
pub ip: &'static str, 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 { pub fn format_ip(ip: &str) -> String {
format!("{: >28}", ip) format!("{ip: >25}")
} }
//---------------------------------------------------------------------------------------------------- Node data //---------------------------------------------------------------------------------------------------- Node data
@ -413,7 +413,7 @@ mod test {
#[test] #[test]
fn spacing() { fn spacing() {
for (ip, _, _, _) in crate::REMOTE_NODES { 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);
} }
} }