MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

server_capabilities.py:97–104  ·  view source on GitHub ↗
(self, shared_data=None)

Source from the content-addressed store, hash-verified

95 # fine from ~1GB up (a 1GB Pi 3 handles it), so it greys out below this
96 # floor and small boards are steered to run it from a larger mesh unit.
97 NUCLEI_MIN_RAM_MB = 900
98 # The on-screen kiosk drives a full Chromium, which needs ~1GB resident on
99 # its own. A Pi Zero 2 W has 512MB total, so the kiosk there thrashes swap
100 # and the whole box crawls — Ragnar's own scanning included. Chromium runs
101 # fine from 2GB up, so the kiosk floor is its own bar rather than full
102 # server mode (a 4GB Pi 4/5 with a screen is a perfectly good kiosk host).
103 # 1.8 rather than 2.0 for the same reason MIN_RAM_GB is 7.5 rather than 8:
104 # firmware/kernel reservations mean a real 2GB Pi 4 reports ~1.9GB.
105 KIOSK_MIN_RAM_GB = 1.8
106 KIOSK_MIN_CORES = 2
107 # Traffic Analysis is a tcpdump pipe read line by line in Python. Measured

Callers

nothing calls this directly

Calls 2

detect_capabilitiesMethod · 0.95
SystemCapabilitiesClass · 0.85

Tested by

no test coverage detected