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] [package]
name = "prometheus_wireguard_exporter" name = "prometheus_wireguard_exporter"
version = "3.0.1" version = "3.1.0"
authors = ["Francesco Cogno <francesco.cogno@outlook.com>"] authors = ["Francesco Cogno <francesco.cogno@outlook.com>"]
description = "Prometheus WireGuard Exporter" description = "Prometheus WireGuard Exporter"
edition = "2018" edition = "2018"

View file

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