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

Function formatBytes

web/scripts/ragnar_modern.js:13649–13655  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

13647function normalizeHostRecord(hostData) {
13648 if (!hostData) {
13649 return null;
13650 }
13651
13652 const ip = hostData.IPs || hostData.ip || hostData.address || hostData.target || '';
13653 if (!ip) {
13654 return null;
13655 }
13656
13657 const hostname = hostData.Hostnames || hostData.Hostname || hostData.hostname || hostData.name || '';
13658 const mac = hostData['MAC Address'] || hostData.MAC || hostData.mac || '';

Callers 9

displayFilesFunction · 0.70
previewFileFunction · 0.70
updateTrafficSummaryFunction · 0.70
loadTrafficHostsFunction · 0.70
loadTrafficConnectionsFunction · 0.70
loadTrafficTopTalkersFunction · 0.70
showTrafficHostDetailFunction · 0.70
showTrafficPortDetailFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected