mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Update dashboard.py
This commit is contained in:
parent
f274f6fd18
commit
d2915b5b05
@ -869,12 +869,12 @@ class WireguardConfiguration:
|
|||||||
"PostUp": self.PostUp,
|
"PostUp": self.PostUp,
|
||||||
"PostDown": self.PostDown,
|
"PostDown": self.PostDown,
|
||||||
"SaveConfig": self.SaveConfig
|
"SaveConfig": self.SaveConfig
|
||||||
# "DataUsage": {
|
"DataUsage": {
|
||||||
# "Total": sum(list(map(lambda x: x.cumu_data + x.total_data, self.Peers))),
|
"Total": sum(list(map(lambda x: x.cumu_data + x.total_data, self.Peers))),
|
||||||
# "Sent": sum(list(map(lambda x: x.cumu_sent + x.total_sent, self.Peers))),
|
"Sent": sum(list(map(lambda x: x.cumu_sent + x.total_sent, self.Peers))),
|
||||||
# "Receive": sum(list(map(lambda x: x.cumu_receive + x.total_receive, self.Peers)))
|
"Receive": sum(list(map(lambda x: x.cumu_receive + x.total_receive, self.Peers)))
|
||||||
# },
|
},
|
||||||
# "ConnectedPeers": len(list(map(lambda x: x.status == "running", self.Peers)))
|
"ConnectedPeers": len(list(map(lambda x: x.status == "running", self.Peers)))
|
||||||
}
|
}
|
||||||
|
|
||||||
class Peer:
|
class Peer:
|
||||||
|
Loading…
Reference in New Issue
Block a user