mirror of
https://github.com/hinto-janai/gupax.git
synced 2025-02-02 03:06:25 +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]]
|
[[package]]
|
||||||
name = "gupax"
|
name = "gupax"
|
||||||
version = "1.3.1"
|
version = "1.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"arti-client",
|
"arti-client",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue