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]]
name = "gupax"
version = "1.3.1"
version = "1.3.2"
dependencies = [
"anyhow",
"arti-client",

View file

@ -1,6 +1,6 @@
[package]
name = "gupax"
version = "1.3.1"
version = "1.3.2"
authors = ["hinto-janai <hinto.janai@protonmail.com>"]
description = "GUI for P2Pool+XMRig"
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/>.
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

View file

@ -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"

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_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);
}
}