Skip to content

Commit

Permalink
Fix typo; 0.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
the2pizza committed Oct 30, 2024
1 parent 92ad1bf commit 4f70cae
Show file tree
Hide file tree
Showing 4 changed files with 6 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 = "pony"
version = "0.0.21"
version = "0.0.22"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::web::not_found;

#[derive(Parser)]
#[command(
version = "0.0.21",
version = "0.0.22",
about = "Pony - montiroing tool for Xray/Wireguard"
)]
struct Cli {
Expand Down Expand Up @@ -77,7 +77,7 @@ async fn main() -> std::io::Result<()> {
std::process::exit(1);
} else {
info!(">>> Settings: {:?}", settings);
info!(">>> Version: 0.0.21");
info!(">>> Version: 0.0.22");
}

let carbon_server = settings.carbon.address.clone();
Expand Down
4 changes: 2 additions & 2 deletions src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ fn convert_bps_to_mbps(rx: Bps, tx: Bps) -> MbpsByServer {
server.clone(),
HashMap::from([
(
"rx_mpbs".to_string(),
"rx_mbps".to_string(),
(rx_value * 1500.0 / 1024.0 / 1024.0 * 8.0),
),
(
"tx_mpbs".to_string(),
"tx_mbps".to_string(),
(tx_value * 1500.0 / 1024.0 / 1024.0 * 8.0),
),
]),
Expand Down

0 comments on commit 4f70cae

Please sign in to comment.