homelab: Plattenschwellen 80/90 % statt 85/95 % (ext4 haelt 5 % fuer root zurueck; AdGuard war bei 94 % innen voll)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c08a144006
commit
6a5134ef79
@@ -81,14 +81,14 @@ export function neuText(b: BausteinStand): string {
|
||||
return b.kurz || b.verfuegbar || "neu"
|
||||
}
|
||||
|
||||
/** Anteil der belegten Platte (0…1) oder null, wo unbekannt. Ab 85 % gelb, ab 95 % rot — wie der Wächter. */
|
||||
/** Anteil der belegten Platte (0…1) oder null, wo unbekannt. Ab 80 % gelb, ab 90 % rot — wie der Wächter (ext4 hält 5 % zurück). */
|
||||
export function plattenAnteil(ziel: ZielStand): number | null {
|
||||
const p = ziel.platte
|
||||
return p && p.gesamt > 0 ? p.belegt / p.gesamt : null
|
||||
}
|
||||
|
||||
export const PLATTE_GELB = 0.85
|
||||
export const PLATTE_ROT = 0.95
|
||||
export const PLATTE_GELB = 0.8
|
||||
export const PLATTE_ROT = 0.9
|
||||
|
||||
export function lampeFuer(ziel: ZielStand, laeuft: boolean): Lampe {
|
||||
const label = kurzname(ziel)
|
||||
|
||||
Reference in New Issue
Block a user