mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 23:37:47 +00:00
v1.3.2
This commit is contained in:
parent
2af44ac40f
commit
1eff1b0780
5 changed files with 7 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2208,7 +2208,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gupax"
|
||||
version = "1.3.1"
|
||||
version = "1.3.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"arti-client",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue