MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / get_system_stats

Method get_system_stats

Scripts/Network Tools/Sod.py:254–262  ·  view source on GitHub ↗

Get current system statistics

(self)

Source from the content-addressed store, hash-verified

252 pass
253
254 def get_system_stats(self):
255 """Get current system statistics"""
256 try:
257 self.system_stats['cpu_percent'] = psutil.cpu_percent(interval=0.1)
258 self.system_stats['memory_percent'] = psutil.virtual_memory().percent
259 net_io = psutil.net_io_counters()
260 self.system_stats['network_io'] = (net_io.bytes_sent, net_io.bytes_recv)
261 except:
262 pass
263
264 def create_http_session(self):
265 """Create optimized HTTP session with connection pooling"""

Callers 1

system_monitorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected