Merge pull request #14 from MindFlavor/issue/13/pr

swapped rx-tx
This commit is contained in:
Francesco Cogno 2019-09-25 20:32:56 +02:00 committed by GitHub
commit 3ab9dd0610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "prometheus_wireguard_exporter"
version = "3.0.1"
version = "3.1.0"
authors = ["Francesco Cogno <francesco.cogno@outlook.com>"]
description = "Prometheus WireGuard Exporter"
edition = "2018"

View File

@ -92,8 +92,8 @@ impl TryFrom<&str> for WireGuard {
remote_port,
allowed_ips,
latest_handshake: v[5].parse::<u64>()?,
sent_bytes: v[6].parse::<u128>().unwrap(),
received_bytes: v[7].parse::<u128>().unwrap(),
received_bytes: v[6].parse::<u128>().unwrap(),
sent_bytes: v[7].parse::<u128>().unwrap(),
persistent_keepalive: to_bool(v[8]),
})
};