IP Manager überarbeitet
This commit is contained in:
@@ -8,7 +8,6 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
})
|
||||
|
||||
|
||||
|
||||
let refreshing = false
|
||||
|
||||
async function refreshAll(){
|
||||
@@ -16,6 +15,7 @@ async function refreshAll(){
|
||||
if(refreshing) return
|
||||
refreshing = true
|
||||
|
||||
|
||||
try{
|
||||
|
||||
await loadResources()
|
||||
@@ -26,16 +26,35 @@ async function refreshAll(){
|
||||
loadInfrastructure()
|
||||
loadCosts()
|
||||
|
||||
// Zeit setzen
|
||||
updateLastUpdate()
|
||||
|
||||
}catch(e){
|
||||
|
||||
console.error("Refresh error", e)
|
||||
|
||||
document.getElementById("lastUpdate").innerText = "🔴 Fehler beim Update"
|
||||
|
||||
}
|
||||
|
||||
refreshing = false
|
||||
}
|
||||
|
||||
|
||||
|
||||
function clearDNSCache(){
|
||||
for(const key in dnsCache){
|
||||
delete dnsCache[key]
|
||||
}
|
||||
}
|
||||
|
||||
function updateLastUpdate(){
|
||||
|
||||
const now = new Date()
|
||||
|
||||
const time = now.toLocaleTimeString()
|
||||
|
||||
// Lade-Indikator
|
||||
document.getElementById("lastUpdate").innerText =
|
||||
"🟢 Letztes Update: " + time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user