MCPcopy Index your code
hub / github.com/MatrixTM/MHDDoS / Counter

Class Counter

start.py:216–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215
216class Counter:
217 def __init__(self, value=0):
218 self._value = RawValue('i', value)
219
220 def __iadd__(self, value):
221 self._value.value += value
222 return self
223
224 def __int__(self):
225 return self._value.value
226
227 def set(self, value):
228 self._value.value = value
229 return self
230
231
232REQUESTS_SENT = Counter()

Callers 1

start.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected