Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hinto-janai committed Oct 22, 2023
1 parent 2af44ac commit 1eff1b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 1eff1b0

Please sign in to comment.