diff --git a/public_html/assets/js/jarvis-overlays.js b/public_html/assets/js/jarvis-overlays.js index f1f8c88..b3a065d 100644 --- a/public_html/assets/js/jarvis-overlays.js +++ b/public_html/assets/js/jarvis-overlays.js @@ -144,7 +144,33 @@ function _nmBuild(devices){ _nmNodes.push({id:'jarvis',label:'JARVIS',sub:'165.22.1.228',online:true,agent:true,ringIdx:0,angle:0,r:NM_RINGS[0].nodeR,pulse:0}); // Bucket var buckets={proxmox:[],services:[],agents:[],devices:[],network:[]}; - for(var i=0;i(prev.last_seen||'')){_dedupedDevices[_seenNames[nk].idx]=d;_seenNames[nk].d=d;} + } + } + // Bucket: offline agents are excluded from inner rings (keep DB/netscan as-is) + for(var i=0;i<_dedupedDevices.length;i++){ + var d=_dedupedDevices[i]; + var isOffline=!(d.alive||d.status==='online'); + if(d.source==='agent'&&isOffline) continue; // hide offline agents from map + buckets[_nmClassify(d)].push(d); + } // Sort netscan devices: online first, then those with meaningful hostnames buckets.network.sort(function(a,b){ var sa=a.alive?1:0, sb=b.alive?1:0; diff --git a/public_html/index.html b/public_html/index.html index 8a69213..2364811 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -404,10 +404,10 @@ style="position:fixed;top:-9999px;left:-9999px;width:320px;height:240px"> - - - - + + + +