MCPcopy Create free account
hub / github.com/dobin/RedEdr / PrintEvent

Method PrintEvent

RedEdr/event_processor.cpp:190–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190void EventProcessor::PrintEvent(nlohmann::json j) {
191 // Output accordingly
192 if (g_Config.hide_full_output) {
193 if (event_count >= 100) {
194 if (event_count % 100 == 0) {
195 std::cout << "O";
196 }
197 }
198 else if (event_count >= 10) {
199 if (event_count % 10 == 0) {
200 std::cout << "o";
201 }
202 }
203 else {
204 std::cout << ".";
205 }
206 }
207 else {
208 std::cout << j.dump() << "\n";
209 }
210}
211
212
213void EventProcessor::EventStats(nlohmann::json& j) {

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected