From 067136de45a255823dd43aed39c35f2ac3077fbc Mon Sep 17 00:00:00 2001 From: Francesco Cogno Date: Wed, 25 Sep 2019 20:22:27 +0200 Subject: [PATCH] swapped rx-tx --- Cargo.toml | 2 +- src/wireguard.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 78fd3bf..06ba6cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prometheus_wireguard_exporter" -version = "3.0.1" +version = "3.1.0" authors = ["Francesco Cogno "] description = "Prometheus WireGuard Exporter" edition = "2018" diff --git a/src/wireguard.rs b/src/wireguard.rs index 99aae65..3a7c8f6 100644 --- a/src/wireguard.rs +++ b/src/wireguard.rs @@ -92,8 +92,8 @@ impl TryFrom<&str> for WireGuard { remote_port, allowed_ips, latest_handshake: v[5].parse::()?, - sent_bytes: v[6].parse::().unwrap(), - received_bytes: v[7].parse::().unwrap(), + received_bytes: v[6].parse::().unwrap(), + sent_bytes: v[7].parse::().unwrap(), persistent_keepalive: to_bool(v[8]), }) };