From 6dc0d9656f885375ba846e99ee8f25d41a936515 Mon Sep 17 00:00:00 2001 From: mantaohuang Date: Sun, 2 Aug 2020 00:19:57 -0400 Subject: [PATCH] fix bug --- openvpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn.py b/openvpn.py index 2c07705..e484f1e 100644 --- a/openvpn.py +++ b/openvpn.py @@ -281,7 +281,7 @@ class Openvpn: logging.debug(f"interface {self.interface} is not ready.") return - self.monitor_interval = True + self.interface_up = True io_count = io_count[self.interface] open(self.io_stat_fp, "a").write( f"{datetime.utcnow().timestamp()},{io_count.bytes_recv},{io_count.bytes_sent}\n")