fix bug
This commit is contained in:
parent
c1e9f7ab59
commit
6dc0d9656f
@ -281,7 +281,7 @@ class Openvpn:
|
|||||||
logging.debug(f"interface {self.interface} is not ready.")
|
logging.debug(f"interface {self.interface} is not ready.")
|
||||||
return
|
return
|
||||||
|
|
||||||
self.monitor_interval = True
|
self.interface_up = True
|
||||||
io_count = io_count[self.interface]
|
io_count = io_count[self.interface]
|
||||||
open(self.io_stat_fp, "a").write(
|
open(self.io_stat_fp, "a").write(
|
||||||
f"{datetime.utcnow().timestamp()},{io_count.bytes_recv},{io_count.bytes_sent}\n")
|
f"{datetime.utcnow().timestamp()},{io_count.bytes_recv},{io_count.bytes_sent}\n")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user