mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-19 16:23:56 +03:00
Remove dead code.
This commit is contained in:
parent
103846d42a
commit
b0ec0de6ca
@ -43,12 +43,6 @@ class StatsCollector(Thread):
|
|||||||
else:
|
else:
|
||||||
self.current[key] += 1
|
self.current[key] += 1
|
||||||
|
|
||||||
def getInboundCount(self, minutes):
|
|
||||||
return sum(islice(self.inboundHistory, 0, min(minutes, self.max_minutes)))
|
|
||||||
|
|
||||||
def getOutboundCount(self, minutes):
|
|
||||||
return sum(islice(self.outboundHistory, 0, min(minutes, self.max_minutes)))
|
|
||||||
|
|
||||||
def getCount(self, key, minutes):
|
def getCount(self, key, minutes):
|
||||||
if key in self.history:
|
if key in self.history:
|
||||||
return sum(islice(self.history[key], 0, min(minutes, self.max_minutes)))
|
return sum(islice(self.history[key], 0, min(minutes, self.max_minutes)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user