swapped rx-tx

This commit is contained in:
Francesco Cogno 2019-09-25 20:22:27 +02:00
parent 4d410d4b1f
commit 067136de45
No known key found for this signature in database
GPG key ID: 20883E192428EA7A
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]),
}) })
}; };